!function(e){var t={};function i(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(o,n,function(t){return e[t]}.bind(null,n));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";i.r(t);i(1),i(2),i(3),i(4),i(5),i(6),i(7),i(8),i(9),i(10),i(11),i(12),i(13),i(14),i(15),i(16),i(17),i(18),i(19),i(20),i(21),i(22),i(23),i(24),i(25),i(26),i(27),i(28),i(29),i(30)},function(e,t){!function(){window.hj=window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)},window._hjSettings=window._hjSettings||{},hj.defaults={host:"in.hotjar.com",insightsHost:"insights.hotjar.com",staticHost:"static.hotjar.com",varsHost:"vars.hotjar.com",errorUrl:"https://ba52622b91a54161b30d42dd31ccd293@sentry.hotjar.com/10"},hj.host=_hjSettings.host||hj.defaults.host,hj.insightsHost=_hjSettings.insightsHost||hj.defaults.insightsHost,hj.staticHost=_hjSettings.staticHost||hj.defaults.staticHost,hj.varsHost=_hjSettings.varsHost||hj.defaults.varsHost,hj.errorUrl=void 0!==_hjSettings.errorUrl?_hjSettings.errorUrl:hj.defaults.errorUrl;hj.ExceptionLogger=function(e,t){t=t||{};var i,o=null,n={},a=[],r=0,s=null!==e,d=window.location.search.indexOf("hjErrorLoggerSamplingDisabled=1")>0?1:.1,c=t.throttleDelay||1e3,l=t.maxErrors||10,p=["scriptversion","module","errorgroup","errormessagegroup","useragent"],h=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/g,u=/\d{1,3}\.\d{1,3}\.\d{1,3}\.(\d{1,3})/g,_=/\d{4,}([-\s]?\d{4,}){2,}/g,g=/password(.*)/g,m=/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/g,f=[{name:"raven",check:function(){return"undefined"!=typeof Raven},url:"https://"+hj.staticHost+"/static/vendor/raven-js/3.26.3-patched-20181219/raven.min.js",state:"unloaded",onLoad:function(){(i=new Raven.Client).config(e,{instrument:!1,dataCallback:j,collectWindowErrors:!1,captureUnhandledRejections:!1,release:"hj-"+window.hjBootstrap.revision,sampleRate:d,shouldSendCallback:function(){return!/.*Google.*/.test(window.navigator.userAgent)}}),i.setUserContext({id:_hjSettings.hjid})}}];function b(){f.filter(function(e){return"unloaded"===e.state}).forEach(function(e){e.check()?w(e):(function(e){e.state="loading";var t=document.createElement("script");t.src=e.url,document.getElementsByTagName("head")[0].appendChild(t)}(e),function(e){var t=setInterval(function(){e.check()&&(clearInterval(t),w(e))},10)}(e))})}function w(e){e.state="loaded",e.onLoad(),v()&&n.startProcessing()}function v(){return f.every(function(e){return"loaded"===e.state})}function y(){var e=a.shift();e&&(function(e){try{i.captureException(e.exception,{logger:e.module})}catch(e){k("Failed to log exception: "+e,"Exception")}}(e),r++)}function j(e){return hj.hq.each(e,function(t,i){i&&"object"==typeof i?j(i):i&&"string"==typeof i&&-1==p.indexOf(t)&&(i=(i=(i=(i=(i=i.replace(u,"")).replace(h,"")).replace(_,"123456789012")).replace(g,"<******>")).replace(m,""),e[t]=i)}),e}function k(e,t,i){(void 0!==hj.log?hj.log.debug:function(){})(e,t,i)}return n.tryCatch=function(e,t){return function(){try{return e.apply(this,arguments)}catch(e){if(/[?&]logErrors/.test(location.search)&&console.error(e),window.__TESTS__)throw e;n.log(e,t||"Generic")}}},n.log=function(e,t){var i;k("Exception occurred in '"+t+"'","Exception",e),i={exception:e,module:t},s&&a.length=l&&n.stopProcessing()},c))},n.isProcessing=function(){return null!==o},n.stopProcessing=function(){n.isProcessing()&&(clearInterval(o),o=null)},n},hj.exceptions=new hj.ExceptionLogger(hj.errorUrl),hj.tryCatch=hj.exceptions.tryCatch}()},function(e,t){try{!function(e,t){var i=function(e){return new o(e)};i.isValidSelector=function(e){try{return hj.hq(e),!0}catch(e){return!1}},i.isEmptyObject=function(e){return!Object.keys(e).length},i.isFunction=function(e){return"function"==typeof e},i.isWindow=function(e){return e===window},i.isDocument=function(e){return e===window.document},i.noop=function(){},i.each=function(e,t){var i,o,n;if("object"==typeof e&&"[object Array]"!==Object.prototype.toString.call(e)){if((o=e[Object.keys(e)[0]])&&void 0!==o.nodeName){for(i in e)if(e.hasOwnProperty(i)&&"length"!==i&&!1===t(i,e[i],e))break}else for(i in e)if(e.hasOwnProperty(i)&&!1===t(i,e[i],e))break}else if(void 0!==e)for(n=0;n=200&&t.status<400?i.isFunction(e.success)&&e.success(t.responseText&&JSON.parse(t.responseText),t):i.isFunction(e.error)&&e.error(t)},t.onerror=function(){i.isFunction(e.error)&&e.error(t)},i.isFunction(e.requestAnnotator)&&e.requestAnnotator(t),"POST"===e.type&&e.data?t.send(e.data):t.send()},i.get=function(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onload=function(){i.status>=200&&i.status<400&&t&&t(i.responseText)},i.send()},i.eventHandlers={},i.selector="";var o=function(e){var o,n,a;if(i.selector=e,i.isWindow(e))return this[0]=window,this.length=1,this;if(i.isDocument(e))return this[0]=t,this.length=1,this;if("object"==typeof e)return this[0]=e,this.length=1,this;if("string"==typeof e&&"<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return(o=t.createElement("div")).innerHTML=e,this[0]=o.childNodes[0],this.length=1,this;if("string"==typeof e){isNaN(e.charAt(1))||"."!==e.charAt(0)&&"#"!==e.charAt(0)||(e=e.charAt(0)+"\\3"+e.charAt(1)+" "+e.slice(2));try{n=t.querySelectorAll(e)}catch(e){return this.length=0,this}for(a=0;a0&&(this[0].value=e),void 0===this[0]?void 0:this[0]?this[0].value:""},o.prototype.text=function(e){return void 0===e?this[0].textContent:this[0].textContent=e},o.prototype.each=function(e,t){Array.prototype.forEach.call(this,function(e,i,o){t(i,e,o)})},o.prototype.append=function(e){var o;"object"==typeof e?"body"===i.selector?t.body.appendChild(e.get(0)):this[0].appendChild(e.get(0)):"body"===i.selector?((o=t.createElement("div")).innerHTML=e,t.body.appendChild(o)):((o=t.createElement("div")).innerHTML=e,this[0].appendChild(o))},o.prototype.hasClass=function(e){return this[0].classList?this[0].classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(this[0].className)},o.prototype.addClass=function(e){var t;for(t=0;t=0;n-=1)if(o[n]===e)return!0;return!1}(this[0],e)},o.prototype.remove=function(){var e;for(e=0;e-1&&n.call(p,e)}},Array.isArray(i.eventHandlers[d])?i.eventHandlers[d].push(c):(i.eventHandlers[d]=[],i.eventHandlers[d].push(c)),t.addEventListener(_[s].split(".")[0],c,!0)):("boolean"==typeof o&&!1===o&&(o=function(e){return e.preventDefault(),!1}),Array.isArray(i.eventHandlers.document)?i.eventHandlers.document.push(o):(i.eventHandlers.document=[],i.eventHandlers.document.push(o)),this[0].addEventListener(_[s].split(".")[0],o,a));else if(i.isDocument(this[0]))for(s=0;s<_.length;s+=1)"boolean"==typeof o&&!1===o&&(o=function(e){return e.preventDefault(),!1}),d="document."+_[s],Array.isArray(i.eventHandlers[d])?i.eventHandlers[d].push(o):(i.eventHandlers[d]=[],i.eventHandlers[d].push(o)),t.addEventListener(_[s].split(".")[0],o,a);else if(i.isWindow(this[0]))for(s=0;s<_.length;s+=1)"boolean"==typeof o&&!1===o&&(o=function(e){return e.preventDefault(),!1}),d="window."+_[s],Array.isArray(i.eventHandlers[d])?i.eventHandlers[d].push(o):(i.eventHandlers[d]=[],i.eventHandlers[d].push(o)),window.addEventListener(_[s].split(".")[0],o,a);else for(r=0;r-1))return i(this[0]).get(0).nodeName.toLowerCase()===e;if((t=/([A-Za-z]+)\[([A-Za-z-]+)=([A-Za-z]+)]/g.exec(e)).length)return i.each(i(this[0]).get(0).attributes,function(e,i){i.name===t[2]&&i.value===t[3]&&(o=!0)}),i(this[0]).get(0).nodeName.toLowerCase()===t[1]&&o}},o.prototype.css=function(e,t){var i,o;for(o=0;o>>0},e.prototype.nodeId=function(t){var i=t[e.ID_PROP];return i||(i=t[e.ID_PROP]=e.nextId_++),i},e.prototype.set=function(e,t){var i=this.nodeId(e);this.nodes[i]=e,this.values[i]=t},e.prototype.get=function(e){return e=this.nodeId(e),this.values[e]},e.prototype.has=function(e){return this.nodeId(e)in this.nodes},e.prototype.deleteNode=function(e){e=this.nodeId(e),delete this.nodes[e],this.values[e]=void 0},e.prototype.keys=function(){var e,t=[];for(e in this.nodes)this.isIndex(e)&&t.push(this.nodes[e]);return t},e.ID_PROP="__hj_mutation_summary_node_map_id__",e.nextId_=1,e}();(f=i||(i={}))[f.STAYED_OUT=0]="STAYED_OUT",f[f.ENTERED=1]="ENTERED",f[f.STAYED_IN=2]="STAYED_IN",f[f.REPARENTED=3]="REPARENTED",f[f.REORDERED=4]="REORDERED",f[f.EXITED=5]="EXITED";var n=function(){function e(e,t,i,o,n,a,r,s){void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===n&&(n=null),void 0===a&&(a=!1),void 0===r&&(r=null),void 0===s&&(s=null),this.node=e,this.childList=t,this.attributes=i,this.characterData=o,this.oldParentNode=n,this.added=a,this.attributeOldValues=r,this.characterDataOldValue=s,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}return e.prototype.getAttributeOldValue=function(e){if(this.attributeOldValues)return this.isCaseInsensitive&&(e=e.toLowerCase()),this.attributeOldValues[e]},e.prototype.getAttributeNamesMutated=function(){var e=[];if(!this.attributeOldValues)return e;for(var t in this.attributeOldValues)e.push(t);return e},e.prototype.attributeMutated=function(e,t){this.attributes=!0,this.attributeOldValues=this.attributeOldValues||{},e in this.attributeOldValues||(this.attributeOldValues[e]=t)},e.prototype.characterDataMutated=function(e){this.characterData||(this.characterData=!0,this.characterDataOldValue=e)},e.prototype.removedFromParent=function(e){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=e},e.prototype.insertedIntoParent=function(){this.added=this.childList=!0},e.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},e}(),a=function(){this.added=new o,this.removed=new o,this.maybeMoved=new o,this.oldPrevious=new o,this.moved=void 0},r=function(e){function i(t,i){e.call(this),this.rootNode=t,this.wasReachableCache=this.reachableCache=void 0,this.anyCharacterDataChanged=this.anyAttributesChanged=this.anyParentsChanged=!1;for(var o=0;oscreen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.height,screen.width])&&e.push(t),screen.availWidth&&screen.availHeight&&(i=this.options.detectScreenOrientation?screen.availHeight>screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]),void 0!==i&&e.push(i),e},timezoneOffsetKey:function(e){return e.push(new Date(1979,3,13).getTimezoneOffset()),e},sessionStorageKey:function(e){return this.hasSessionStorage()&&e.push("sessionStorageKey"),e},localStorageKey:function(e){return this.hasLocalStorage()&&e.push("localStorageKey"),e},indexedDbKey:function(e){return this.hasIndexedDB()&&e.push("indexedDbKey"),e},addBehaviorKey:function(e){return document.body&&document.body.addBehavior&&e.push("addBehaviorKey"),e},openDatabaseKey:function(e){return window.openDatabase&&e.push("openDatabase"),e},cpuClassKey:function(e){return e.push(this.getNavigatorCpuClass()),e},platformKey:function(e){return e.push(this.getNavigatorPlatform()),e},doNotTrackKey:function(e){return e.push(this.getDoNotTrack()),e},adBlockKey:function(e){return e.push(this.getAdBlock()),e},hasLiedLanguagesKey:function(e){return e.push(this.getHasLiedLanguages()),e},hasLiedResolutionKey:function(e){return e.push(this.getHasLiedResolution()),e},hasLiedOsKey:function(e){return e.push(this.getHasLiedOs()),e},hasLiedBrowserKey:function(e){return e.push(this.getHasLiedBrowser()),e},pluginsKey:function(e){return this.isIE()||e.push(this.getRegularPluginsString()),e},getRegularPluginsString:function(){var e=[],t=["Shockwave Flash"];if(void 0===navigator.plugins)return"no-plugins";for(var i=0,o=navigator.plugins.length;it.name?1:e.name=0?"Windows Phone":t.toLowerCase().indexOf("win")>=0?"Windows":t.toLowerCase().indexOf("android")>=0?"Android":t.toLowerCase().indexOf("linux")>=0?"Linux":t.toLowerCase().indexOf("iPhone")>=0||t.toLowerCase().indexOf("iPad")>=0?"iOS":t.toLowerCase().indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==i){if(i.toLowerCase().indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(i.toLowerCase().indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(i.toLowerCase().indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if(0===i.toLowerCase().indexOf("win")&&0===i.toLowerCase().indexOf("linux")&&i.toLowerCase().indexOf("mac")>=0&&"other"!==e)return!0}return o.toLowerCase().indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||((o.toLowerCase().indexOf("linux")>=0||o.toLowerCase().indexOf("android")>=0||o.toLowerCase().indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||((o.toLowerCase().indexOf("mac")>=0||o.toLowerCase().indexOf("ipad")>=0||o.toLowerCase().indexOf("ipod")>=0||o.toLowerCase().indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(0===o.toLowerCase().indexOf("win")&&0===o.toLowerCase().indexOf("linux")&&o.toLowerCase().indexOf("mac")>=0&&"other"!==e||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)))},getHasLiedBrowser:function(){var e,t=navigator.userAgent,i=navigator.productSub;if(("Chrome"===(e=t.toLowerCase().indexOf("firefox")>=0?"Firefox":t.toLowerCase().indexOf("opera")>=0||t.toLowerCase().indexOf("opr")>=0?"Opera":t.toLowerCase().indexOf("chrome")>=0?"Chrome":t.toLowerCase().indexOf("safari")>=0?"Safari":t.toLowerCase().indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==i)return!0;var o,n=eval.toString().length;if(37===n&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===n&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===n&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),o=!0}catch(e){o=!1}}return!(!o||"Firefox"===e||"Other"===e)},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},each:function(e,t,i){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,i);else if(e.length===+e.length){for(var o=0,n=e.length;o>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]+t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]*t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=e[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])},x64LeftShift:function(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),e=this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var i=(e=e||"").length%16,o=e.length-i,n=[0,t],a=[0,t],r=[0,0],s=[0,0],d=[2277735313,289559509],c=[1291169091,658871167],l=0;l>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}},hj.fingerprinter.VERSION="0.7.1",hj.fingerprinter},"fingerprinter")()},function(e,t){var i;hj.tryCatch((i=window,void(hj.deviceDetection={getDevice:function(e,t){null==t||t!=t.window||document.documentElement;var i="Tv Desktop Tablet Mobile".split(" "),o=function(e){return e.match(/GoogleTV|SmartTV|Internet.TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)?"tv":e.match(/Xbox|PLAYSTATION.3|Wii/i)?"tv":e.match(/iPad/i)||e.match(/tablet/i)&&!e.match(/RX-34/i)||e.match(/FOLIO/i)?"tablet":e.match(/Linux/i)&&e.match(/Android/i)&&!e.match(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945/i)?"tablet":e.match(/Kindle/i)||e.match(/Mac.OS/i)&&e.match(/Silk/i)?"tablet":e.match(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC(.Flyer|\_Flyer)|Sprint.ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos.S7|Dell.Streak.7|Advent.Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||e.match(/MB511/i)&&e.match(/RUTEM/i)?"tablet":e.match(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google.Wireless.Transcoder/i)?"mobile":e.match(/Opera/i)&&e.match(/Windows.NT.5/i)&&e.match(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?"mobile":e.match(/Windows.(NT|XP|ME|9)/)&&!e.match(/Phone/i)||e.match(/Win(9|.9|NT)/i)?"desktop":e.match(/Macintosh|PowerPC/i)&&!e.match(/Silk/i)?"desktop":e.match(/Linux/i)&&e.match(/X11/i)?"desktop":e.match(/Solaris|SunOS|BSD/i)?"desktop":e.match(/Bot|Crawler|Spider|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|TinEye/i)&&!e.match(/Mobile/i)?"desktop":"mobile"},n=o(t.navigator?t.navigator.userAgent:t.request?t.request.headers["user-agent"]:"No User-Agent Provided"),a=function(e){return n===e},r=function(){var e=[].slice.call(arguments,0);return 2===e.length&&n===e[0]?(n=e[1],s()):1===e.length&&"string"==typeof e[0]&&(n=e[0],s()),n};function s(){!function(){for(var e=i.length;e--;)r["is"+i[e]]=a(i[e].toLowerCase())}()}return r.is=a,r.test=o,s(),r}(0,i)})),"device-detection")},function(e,t){hj.tryCatch(function(){if(void 0!==hj.scriptLoaded)return window.console=window.console||{warn:function(){}},console.warn("Hotjar Tracking Warning: Multiple Hotjar tracking codes were detected on this page. Tracking will not work as expected."),hj.verifyInstall?void hj.notification.show("Hotjar installation invalid.","It appears you have more than one Hotjar tracking code set up on this page. Hotjar cannot work properly if multiple Hotjar scripts are loaded concurrently. Please make sure you only install the one tracking code provided for this site.","bad"):void 0;var e,t,i;function o(e,t){var i=a(i=e[0],c=e[1],n=e[2],o=e[3],t[0],7,-680876936),o=a(o,i,c,n,t[1],12,-389564586),n=a(n,o,i,c,t[2],17,606105819),c=a(c,n,o,i,t[3],22,-1044525330);i=a(i,c,n,o,t[4],7,-176418897),o=a(o,i,c,n,t[5],12,1200080426),n=a(n,o,i,c,t[6],17,-1473231341),c=a(c,n,o,i,t[7],22,-45705983),i=a(i,c,n,o,t[8],7,1770035416),o=a(o,i,c,n,t[9],12,-1958414417),n=a(n,o,i,c,t[10],17,-42063),c=a(c,n,o,i,t[11],22,-1990404162),i=a(i,c,n,o,t[12],7,1804603682),o=a(o,i,c,n,t[13],12,-40341101),n=a(n,o,i,c,t[14],17,-1502002290),i=r(i,c=a(c,n,o,i,t[15],22,1236535329),n,o,t[1],5,-165796510),o=r(o,i,c,n,t[6],9,-1069501632),n=r(n,o,i,c,t[11],14,643717713),c=r(c,n,o,i,t[0],20,-373897302),i=r(i,c,n,o,t[5],5,-701558691),o=r(o,i,c,n,t[10],9,38016083),n=r(n,o,i,c,t[15],14,-660478335),c=r(c,n,o,i,t[4],20,-405537848),i=r(i,c,n,o,t[9],5,568446438),o=r(o,i,c,n,t[14],9,-1019803690),n=r(n,o,i,c,t[3],14,-187363961),c=r(c,n,o,i,t[8],20,1163531501),i=r(i,c,n,o,t[13],5,-1444681467),o=r(o,i,c,n,t[2],9,-51403784),n=r(n,o,i,c,t[7],14,1735328473),i=s(i,c=r(c,n,o,i,t[12],20,-1926607734),n,o,t[5],4,-378558),o=s(o,i,c,n,t[8],11,-2022574463),n=s(n,o,i,c,t[11],16,1839030562),c=s(c,n,o,i,t[14],23,-35309556),i=s(i,c,n,o,t[1],4,-1530992060),o=s(o,i,c,n,t[4],11,1272893353),n=s(n,o,i,c,t[7],16,-155497632),c=s(c,n,o,i,t[10],23,-1094730640),i=s(i,c,n,o,t[13],4,681279174),o=s(o,i,c,n,t[0],11,-358537222),n=s(n,o,i,c,t[3],16,-722521979),c=s(c,n,o,i,t[6],23,76029189),i=s(i,c,n,o,t[9],4,-640364487),o=s(o,i,c,n,t[12],11,-421815835),n=s(n,o,i,c,t[15],16,530742520),i=d(i,c=s(c,n,o,i,t[2],23,-995338651),n,o,t[0],6,-198630844),o=d(o,i,c,n,t[7],10,1126891415),n=d(n,o,i,c,t[14],15,-1416354905),c=d(c,n,o,i,t[5],21,-57434055),i=d(i,c,n,o,t[12],6,1700485571),o=d(o,i,c,n,t[3],10,-1894986606),n=d(n,o,i,c,t[10],15,-1051523),c=d(c,n,o,i,t[1],21,-2054922799),i=d(i,c,n,o,t[8],6,1873313359),o=d(o,i,c,n,t[15],10,-30611744),n=d(n,o,i,c,t[6],15,-1560198380),c=d(c,n,o,i,t[13],21,1309151649),i=d(i,c,n,o,t[4],6,-145523070),o=d(o,i,c,n,t[11],10,-1120210379),n=d(n,o,i,c,t[2],15,718787259),c=d(c,n,o,i,t[9],21,-343485551);e[0]=h(i,e[0]),e[1]=h(c,e[1]),e[2]=h(n,e[2]),e[3]=h(o,e[3])}function n(e,t,i,o,n,a){return t=h(h(t,e),h(o,a)),h(t<>>32-n,i)}function a(e,t,i,o,a,r,s){return n(t&i|~t&o,e,t,a,r,s)}function r(e,t,i,o,a,r,s){return n(t&o|i&~o,e,t,a,r,s)}function s(e,t,i,o,a,r,s){return n(t^i^o,e,t,a,r,s)}function d(e,t,i,o,a,r,s){return n(i^(t|~o),e,t,a,r,s)}function c(e){var t,i=[];for(t=0;64>t;t+=4)i[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return i}window.hj=window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)},window.hj.q=window.hj.q||[],hj.hostname=hj.host.split(":")[0],hj.port=443,hj.apiUrlBase="https://"+hj.host+"/api/v1",hj.includedInSample=!1,hj.isPreview=Boolean(_hjSettings.preview),hj.settings={},hj.userDeviceType=null,hj.optOut=!1,hj.windowSize=null,hj.scriptVersion=16041304,hj.currentDeferredPageContentId=null,hj.maxRecordingTagLength=50,hj.locationListener=(i="manual",(t={}).setMode=hj.tryCatch(function(t){i=t,e&&clearInterval(e),"automatic_with_fragments"===i?e=setInterval(function(){var e=location.origin+location.pathname+location.search+location.hash;hj.currentUrl&&hj.currentUrl!=e&&hj._init.reinit(e)},200):"automatic"===i&&(e=setInterval(function(){var e=location.origin+location.pathname+location.search;hj.currentUrl&&hj.currentUrl.split("#")[0]!=e&&hj._init.reinit(e)},200))}),t);var l="0123456789abcdef".split("");function p(e){for(var t="",i=0;4>i;i++)t+=l[e>>8*i+4&15]+l[e>>8*i&15];return t}function h(e,t){return e+t&4294967295}hj.encodeAsUtf8=function(e){return unescape(encodeURIComponent(e))},hj.md5=function(e,t){var i="";try{i=function(e){for(var t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),55t;t++)a[t]=0;return a[14]=8*i,o(n,a),n}(hj.encodeAsUtf8(e)))}catch(e){t?i="":hj.exceptions.log(e,"md5")}return i},hj.b64EncodeUnicode=function(e){return btoa(hj.encodeAsUtf8(e))},"5d41402abc4b2a76b9719d911017c592"!=hj.md5("hello")&&(h=function(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}),hj.time=function(){var e={},t=(new Date).getTime();return e.reset=function(){t=(new Date).getTime()},e.getNow=function(){return(new Date).getTime()-t},e}(),hj.debug=function(){var e={on:function(e){_hjSettings.hjdebug=!0,e&&hj.cookie.set("hjDebug",!0)},off:function(){_hjSettings.hjdebug=!1,hj.cookie.set("hjDebug",!1)},emit:function(e,t){"undefined"!=typeof _hjEmitters&&_hjEmitters.includes&&_hjEmitters.includes(e)&&window.postMessage({data:t,message:"hjDebug",type:e},"*")}};return e}(),hj.url=function(){var e={};return e.getParameter=hj.tryCatch(function(e){var t,i,o=[];for(t=new RegExp("[^?&]?"+e.replace(/\[/,"\\[").replace(/]/,"\\]")+"=([^&]+)","g");i=t.exec(location.search);)o.push(hj.url.tryDecodeURIComponent(i[1]));switch(o.length){case 0:return"";case 1:return o[0];default:return o}},"common"),e.tryDecodeURIComponent=hj.tryCatch(function(e){try{return decodeURIComponent(e)}catch(t){return e}},"common"),e.getUrlFromString=hj.tryCatch(function(e){return(e=e||window.location.href).startsWith("http")||(e.startsWith("/")||(e="/"+e),e=location.protocol+"//"+location.hostname+(""!=location.port?":"+location.port:"")+e),e},"common"),e}(),hj.cookie=function(){var e={};return e.get=hj.tryCatch(function(e){var t=new RegExp("(?:^|; )"+e+"=([^;]*)").exec(document.cookie);return t?t[1]:null},"common"),e.set=hj.tryCatch(function(e,t,i){var o=new Date,n=i||365,a=e+"="+t+"; path=/; ";0===i||(o.setTime(o.getTime()+24*n*60*60*1e3),a+="expires="+o.toUTCString()),document.cookie=a},"common"),e.add=hj.tryCatch(function(e,t){var i=hj.cookie.get(e);i=i?i.split(","):[],hj.hq.inArray(t.toString(),i)||(i.push(t),hj.cookie.set(e,i.join(",")))},"common"),e.find=hj.tryCatch(function(e,t){var i,o=hj.cookie.get(e);for(o=o?o.split(","):[],i=0;iNumber(e.pattern)},less_than:function(e,t){return r(e.pattern,t)?{error:"Cannot compare non-numeric values."}:Number(t)=(o-=86400*Number(t.pattern)))}},e}(),hj.utils=function(){var e={};return e.ieVersion=hj.tryCatch(function(e){var t=e||navigator.userAgent;return t.indexOf("MSIE ")>0?document.all&&!document.compatMode?5:document.all&&!window.XMLHttpRequest?6:document.all&&!document.querySelector?7:document.all&&!document.addEventListener?8:document.all&&!window.atob?9:10:-1!==t.indexOf("Trident/")?11:-1!==t.indexOf("Edge/")?12:"notIE"},"common"),e.isFirefox=hj.tryCatch(function(e){return(e=e||navigator.userAgent).indexOf("Firefox")>-1},"common"),e.isSafari=hj.tryCatch(function(e){return(e=e||navigator.userAgent).indexOf("Safari")>-1&&-1===e.indexOf("Chrome")},"common"),e.shuffle=hj.tryCatch(function(e){var t,i,o;for(t=e.length-1;t>0;t-=1)i=Math.floor(Math.random()*(t+1)),o=e[t],e[t]=e[i],e[i]=o;return e},"common"),e.uuid4=hj.tryCatch(function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},"common"),e.validateEmail=hj.tryCatch(function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},"common"),e.deviceType=hj.tryCatch(function(){return hj.userDeviceType||(hj.userDeviceType=hj.deviceDetection.getDevice(),"mobile"===hj.userDeviceType&&(hj.userDeviceType="phone")),hj.userDeviceType},"common"),e}(),hj.rendering=function(){var e=[],t={},i={};function o(e,t){hj.tryCatch(t,"Rendering")(e)}function n(e,t){hj.widgetDelay.set(function(){hj.tryCatch(t,"Rendering")(e)},1e3*e.display_delay)}function a(t,i,o){var n=hj.hq(document),a=hj.hq(window),r=[];function s(){hj.tryCatch(i,"Rendering")(t),n.off("mousemove."+o),n.off("mouseout."+o)}e.push(o),n.off("mousemove."+o),n.off("mouseout."+o),n.on("mousemove."+o,hj.tryCatch(function(e){r.push({x:e.clientX,y:e.clientY}),r.length>2&&(r[1].x===r[2].x&&r[1].y===r[2].y?r.pop():r.shift())},"Rendering")),n.on("mouseout."+o,hj.tryCatch(function(e){var t,i,o,n,d;e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||(t=e.clientY,n=r[1],d=r[0],t|=0,void 0!==n&&(n.y>=d.y||t>0||(d.x===n.x&&s(),i=(d.y-n.y)/(d.x-n.x),(o=-(d.y-i*d.x)/i)>0&&o=.5&&(n.off("scroll."+i),t(e))},"Rendering"))}function s(e){return e=(e=e.replace(/(\b(https?):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,'$1')).replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1$2')}t.clearAllAbandonEvents=hj.tryCatch(function(){e.forEach(function(e){hj.log.debug("Removing abandon events for "+e,"rendering"),hj.hq(document).off("mousemove."+e),hj.hq(document).off("mouseout."+e)}),e=[]},"common"),t.renderTemplate=hj.tryCatch(function(e,o){var n=i[e];if(!n){var a="var pieces=[],print=function(){pieces.push.apply(pieces,arguments);};with(obj){pieces.push('"+e.replace(/[\r\t\n]/g," ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.+?)%>/g,"',$1,'").split("<%").join("');").split("%>").join("pieces.push('")+"');}return pieces.join('');";n=new Function("obj",a),i[e]=n}return n(function e(i){var o=Array.isArray(i)?[]:{};for(var n in i){var a;i.hasOwnProperty(n)&&("object"==typeof(a=i[n])?a instanceof hj.rendering.TrustedString?o[n]=a.value:o[n]=e(a):o[n]="string"==typeof a?s(t.escapeHtml(a)):i[n])}return o}(o))},"common"),t.addToDom=hj.tryCatch(function(e,t){if(!e)throw Error("container id not defined");if(!t)throw Error("cannot append html to container #"+e+", html not defined.");return hj.hq("#"+e).remove(),hj.hq("body").append(t),hj.hq("#"+e+">div")},"common.addToDom"),t.TrustedString=function(e){this.value=e},t.callAccordingToCondition=hj.tryCatch(function(e,t,i){var s={immediate:o,delay:n,abandon:a,scroll:r}[e.display_condition];if(hj.log.debug("Calling active item ("+t+"): "+e.display_condition,"rendering"),!s)throw new Error('Unhandled display condition: "'+e.display_condition+'"');var d=!0;void 0===e.targeting_percentage||hj.isPreview||(d=(new hj.fingerprinter).compareRatio(e.targeting_percentage,!0)),d?hj.tryCatch(s,"Rendering")(e,i,t):hj.log.debug("Fingerprinter not in targeting percentage. Widget will not render.","rendering")},"common");var d={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.escapeHtml=function(e){return e.replace(/&(?!(amp|lt|gt|quot|#39);)/g,function(e){return d[e]}).replace(/[<>"']/g,function(e){return d[e]})},t}(),hj.survey=hj.tryCatch(function(){var e={ctrl:void 0,data:void 0,model:{},activeLanguageDirection:"ltr"};return e},"common")(),hj.ui=function(){var e={};return e.getWindowSize=hj.tryCatch(function(){var e=function(){try{return window.self!==window.top}catch(e){return!0}}(),t={width:!e&&window.screen?window.screen.width:document.body.clientWidth,height:!e&&window.screen?window.screen.height:document.body.clientHeight};return{width:window.innerWidth||document.documentElement.clientWidth||t.width,height:window.innerHeight||document.documentElement.clientHeight||t.height}},"common"),e.getDocumentSize=hj.tryCatch(function(){var t,i;if(document&&document.documentElement&&document.documentElement.clientWidth)t=document.documentElement.clientWidth,i=document.documentElement.clientHeight;else{var o=e.getWindowSize();t=o.width,i=o.height}return{width:t,height:i}},"common"),e.getScrollPosition=hj.tryCatch(function(e){return e=e||window,{left:hj.hq(e).scrollLeft(),top:hj.hq(e).scrollTop()}},"common"),e.getBottomAsPercentage=hj.tryCatch(function(){var e=parseInt(1e3*(hj.hq(window).scrollTop()+hj.ui.getWindowSize().height)/hj.hq(document).height(),10);return Math.min(1e3,e)},"common"),e.disableScrolling=hj.tryCatch(function(e){var t=hj.ui.getScrollPosition();hj.hq(document).on("scroll.hotjarDisable resize.hotjarDisable mousewheel.hotjarDisable DOMMouseScroll.hotjarDisable touchmove.hotjarDisable",hj.tryCatch(function(i){i.preventDefault(),window.scrollTo(t.left,t.top),e&&e()},"common"))},"common"),e.enableScrolling=hj.tryCatch(function(){hj.hq(document).off("scroll.hotjarDisable"),hj.hq(document).off("resize.hotjarDisable"),hj.hq(document).off("mousewheel.hotjarDisable"),hj.hq(document).off("DOMMouseScroll.hotjarDisable"),hj.hq(document).off("touchmove.hotjarDisable")},"common"),e}(),hj.dom=function(){var e={getCSSURLs:function(){var e=[],t=document.styleSheets;return hj.log.debug("Getting CSS","dpc","Starting"),t&&t.length>0&&hj.hq.each(t,function(t,i){i.href&&0===i.href.indexOf("http")&&(hj.log.debug("Getting CSS","dpc",i.href),e.push(i.href))}),e}};return e}(),hj.html=function(){var e={};return e.getPageContent=hj.tryCatch(function(e,t){t=t||[],hj.treeMirror.getMirroredDocument(function(i){hj.insertedRules.getCurrentInsertedRules().forEach(function(e){var o=function(e,t){t=t||document;var i=parseInt(e.split(":")[0]),o=e.substring(e.indexOf(":")+1);return t.querySelectorAll(o)[i]}(e.parentSelector,i);if("LINK"===o.tagName){var n=o.attributes,a=n.href.value.split(location.hostname).pop().replace("/",""),r=i.querySelector(".blob-hash-"+a);if(!r){(r=document.createElement("style")).textContent=r.textContent||"/* Originally: 0&&(t=t.substring(0,i)),0!==(t=t.replace(",","")).indexOf("http")&&(t=a+t),e.src=t}}e.removeAttribute("srcset")}}),Array.prototype.slice.call(e.getElementsByTagName("source")).forEach(function(e){e.attributes.srcset&&e.removeAttribute("srcset")}),[].forEach.call(e.querySelectorAll("script"),function(e){e.parentNode.removeChild(e)}),t(hj.html.getPageDoctype()+e.documentElement.outerHTML)}(i,e,t)})},"common"),e.getPageDoctype=hj.tryCatch(function(){return null===document.doctype?"":"\n"},"common"),e}(),hj.features=function(){var e={};return e.getFeatures=hj.tryCatch(function(){return hj.settings.features||[]},"hj.features.getFeatures"),e.hasFeature=hj.tryCatch(function(t){return e.getFeatures().indexOf(t)>-1},"hj.features.hasFeature"),e}(),hj.cssBlobs=function(){var e={},t=[];return e.register=function(e){t.push(e)},e.handleBlobStyles=hj.tryCatch(function(e){var i,o=[];if("link"===e.tagName.toLowerCase()&&"rel"in e.attributes&&"stylesheet"===e.attributes.rel.value&&"href"in e.attributes&&0===e.attributes.href.value.indexOf("blob:")){i=hj.selector().get(hj.hq(e));for(var n=0,a=e.sheet.cssRules.length;n");function i(e,t){var i,o,n,a=[];for(n=0;n/content",{post:["POST",["content"]]}),e}(),hj.ajax=((e={}).get=hj.tryCatch(function(e,t,i){t=t||hj.hq.noop,i=i||hj.hq.noop,hj.hq.ajax({url:e,success:hj.tryCatch(t,"Data"),error:hj.tryCatch(i,"Data")})},"data"),e.post=hj.tryCatch(function(e,t,i,o){i=i||hj.hq.noop,o=o||hj.hq.noop,hj.hq.ajax({url:e,type:"POST",data:JSON.stringify(t),contentType:"application/json",success:hj.tryCatch(i,"Data"),error:hj.tryCatch(o,"Data")})},"data"),e),hj.eventStream=hj.tryCatch(function(){var e,t,i,o,n,a={},r=[],s="",d=void 0;return a.setCurrentPageVisitKey=hj.tryCatch(function(t){s!==t&&(s=t,e()),a.flush()},"data"),a.writeNewFrame=hj.tryCatch(function(t,i){return e(i),a.write(t),e(),a}),a.write=hj.tryCatch(function(e,t,i){var o,n;return hj.isPreview?a:(hj.webSocket.connect(),"object"==typeof e?(hj.hq.each(e,function(e,t){a.write(e,t,!0)}),a):(o=r.pop(),n=e,i?o[n]=t:(o[n]=o[n]||[],o[n].push(t)),r.push(o),a))},"data"),a.flush=hj.tryCatch(function(){var i,o,n=hj.globals.get("userId");if(d&&clearInterval(d),n||(hj.globals.ready("userId",a.flush),e()),hj.webSocket.isConnected()&&n){if((o=(i=t()).length)>0)for(var r=JSON.stringify({uuid:n,viewportid:hj.viewport.getId(),siteid:hj.settings.site_id})+"\n",s=0;s1){var l=[];t.autotag_recording&&(l=t.autotag_recording.filter(function(e){return"rageclick"===e.name})),l.length>0?s.push(t):(t.clipboard&&a.push(t.clipboard),d.push(i(t)))}var p=n(s,a);return r=p.leftover,e(),[].concat(d,p.sendable)},"data"),n=hj.tryCatch(function(e,t){var o=[],n=[];return hj.hq.each(t,function(t,i){e=e.filter(function(e){if("copy"===i.action||"cut"===i.action)return i.time-e.autotag_recording[0].time>5e3})}),hj.hq.each(e,function(e,t){hj.time.getNow()-t.autotag_recording[0].time<5e3?o.push(t):n.push(i(t))}),{leftover:o,sendable:n}},"data.filterRageClicks"),i=hj.tryCatch(function(e){return hj.hq.each(e,function(t,i){hj.hq.isFunction(i)&&(e[t]=i())}),e.page_visit_key=e.pageVisitKey,delete e.pageVisitKey,"object"==typeof e.mutation&&(e.mutation=o(e.mutation)),e},"data"),o=hj.tryCatch(function(e){var t,i="";if("object"==typeof e)return hj.hq.each(e,function(o,n){"object"==typeof n.c&&(hj.hq.each(n.c,function(n,a){"object"==typeof a.attributes&&"string"==typeof a.attributes.style&&(a.attributes.style===t&&a.id===i&&(e[o].c[n]=null),t=a.attributes.style,i=a.id)}),e[o].c=e[o].c.filter(function(e){return e}),e[o].c.length||delete e[o].c),void 0===e[o].a&&void 0===e[o].b&&void 0===e[o].c&&void 0===e[o].d&&(e[o]=null)}),e.filter(function(e){return e})},"data"),a})(),hj.property=hj.tryCatch(function(){var e={};return e.create=hj.tryCatch(function(){var e={key:hj.utils.uuid4()},t={},i={};return e.ready=hj.tryCatch(function(o,n){n=hj.tryCatch(n,"Data"),i[o]?(hj.log.debug("Property "+o+" is ready. Calling callback() now.","property",n),n(e)):(hj.log.debug("Property "+o+" is not ready. Saving callback().","property",n),t[o]?t[o].push({callback:n,executed:!1}):t[o]=[{callback:n,executed:!1}])},"data"),e.set=hj.tryCatch(function(o,n){hj.log.debug("Setting properties."+o+" to "+n,"property"),i[o]=n,"object"==typeof t[o]&&hj.hq.each(t[o],function(t,i){i.executed||(hj.log.debug("Calling "+o+" callback.","property"),i.callback(e),i.executed=!0)})},"data"),e.get=hj.tryCatch(function(e){return i[e]},"data"),e},"data"),hj.globals=e.create(),e},"data")(),hj.event=hj.tryCatch(function(){var e,t={},i=[],o={};return t.listen=hj.tryCatch(function(t,o){i.unshift({eventIds:t,callback:hj.tryCatch(o,"Data")}),e()},"data"),t.signal=hj.tryCatch(function(t,i){void 0===i?hj.log.debug('Event signalled: "'+t+'".',"event"):hj.log.debug('Event signalled: "'+t+'". Data: "'+JSON.stringify(i)+'".',"event"),o[t]=void 0===i||i,e()},"data"),t.clearAllListeners=hj.tryCatch(function(){i=[]},"data"),e=hj.tryCatch(function(){var e,t,n;for(t in o)if(o.hasOwnProperty(t))for(e=i.length-1;e>=0;e-=1)n=i[e],-1!==hj.hq.indexOf(t,n.eventIds)&&(hj.log.debug('Event triggered: "'+t+'".',"event"),n.callback(o[t]),delete o[t])},"data"),t},"data")()},"data")()},function(e,t){hj.tryCatch(function(){hj.remoteStorage=hj.tryCatch(function(){var e={},t={},i=0,o=!1,n="https://"+hj.varsHost.replace(/:$/,""),a=window.hjBootstrap.varsJar;function r(e){if((e.origin||e.originalEvent.origin)==n)try{var i=JSON.parse(e.data);(0,t[i.messageId])(i),delete t[i.messageId]}catch(e){return null}}function s(e,s){var d;o||(window.addEventListener?window.addEventListener("message",r,!1):window.attachEvent("onmessage",r)),s&&(d=i++,t[d]=s,e.messageId=d),e=JSON.stringify(e),window.hjBootstrap.varsLoaded?a.contentWindow.postMessage(e,n):hj.event.listen(["varsLoaded"],function(){a.contentWindow.postMessage(e,n)})}return e.get=hj.tryCatch(function(e,t,i){s({action:"_hjGet",key:e,siteId:i||hj.settings.site_id},function(e){t(e.value)})}),e.set=hj.tryCatch(function(e,t,i,o){s({action:"_hjSet",key:e,value:t,expiresMinutes:i||525600,siteId:o||hj.settings.site_id})}),e},"remoteStorage")(),hj.remoteCookieJar=hj.remoteStorage},"remoteStorage")()},function(e,t){hj.tryCatch(function(){var e;hj.loader.registerModule("IntegrationsModule",(e={},hj.integrations=hj.tryCatch(function(){var e={};return e.google_analytics=hj.tryCatch(function(){var e,t,i,o,n,a,r,s,d,c={},l=60,p=!0;return c.setup=hj.tryCatch(function(t){var o=t.hjuid_dimension_index;o&&"string"==typeof o&&o.match("^[1-9][0-9]*$")&&(r="dimension"+o,hj.log.debug("GA - setup complete. Looking for GA module.","integration"),e(),i())}),e=hj.tryCatch(function(){hj.log.debug("GA - waiting for userId.","integration"),hj.globals.ready("userId",t)},"integrations"),t=hj.tryCatch(function(e){var t=e.get("userId");t&&"string"==typeof t&&(t.length<8||(hj.log.debug("GA - got userId.","integration"),d=t.substring(0,8),a()))},"integrations"),i=hj.tryCatch(function(){var e,t;if(!s){if(e=window.GoogleAnalyticsObject,"function"==typeof(t=window[e||"ga"]))return hj.log.debug("GA - found GA module; waiting for tracker.","integration"),void t(o);l<=0?hj.log.debug("GA - has given up looking for GA module.","integration"):(l-=1,setTimeout(i,500))}},"integrations"),o=hj.tryCatch(function(e){n(e,!0)},"integrations"),c.setTracker=hj.tryCatch(function(e){n(e,!1)},"integrations"),n=hj.tryCatch(function(e,t){r&&e&&(s&&t||(s!==e&&(hj.log.debug("GA - got fresh tracker.","integration"),p=!0),s=e,a()))},"integrations"),a=hj.tryCatch(function(){p&&d&&s&&r&&(hj.log.debug("GA - ready to fire.","integration"),p=!1,s.set(r,d),s.send("event","Hotjar","detect_user",d,{nonInteraction:1}),hj.log.debug("GA - successfully sent detect_user event.","integration"))},"integrations"),c},"integrations")(),e.optimizely=function(){var e={},t={},i=window.optimizely;function o(e){"applied"===e.name&&(hj.log.debug("Optimizely - campaign decided; ready to tag experiments.","integration"),n())}function n(){var e,o,n,a,r;hj.log.debug("Optimizely - attempting to tag active experiments.","integration"),hj.log.debug("Optimizely - refreshing active experiment variation map.","integration"),t={},i&&"get"in i&&(a=i.get("state"),r=i.get("data"),a.getActiveExperimentIds().forEach(function(i){o=r.experiments[i].name||i,e=a.getVariationMap()[i],n=e.name||e.id,t[o]=n})),hj("tagRecording",function(){hj.log.debug("Optimizely - looking for tags.","integration");var e=[];for(var i in t)e.push(i+"/"+t[i]);return e.length>0?hj.log.debug("Optimizely - found "+e.length+" tags.","integration",e):hj.log.debug("Optimizely - no tags found.","integration"),e}())}return e.setup=function(){hj.log.debug("Optimizely - listening for campaignDecided event.","integration"),(i=window.optimizely||[]).push({type:"addListener",filter:{name:"campaignDecided"},handler:o}),n()},e}(),e},"integrations")(),e.run=hj.tryCatch(function(){var e=hj.settings.integrations;e&&(e.optimizely&&e.optimizely.tag_recordings&&hj.integrations.optimizely.setup(),e.google_analytics&&hj.integrations.google_analytics.setup(e.google_analytics))}),e),!1)},"integrations")()},function(e,t){hj.tryCatch(function(){hj.notification=function(){var e={},t="_hj-f5b2a1eb-9b07_hotjar_notification",i=' ",o='
×
<% if (status) { %>
">
<% } %>
<% if (title) { %> <%= title %> <% } %> <% if (message) { %>
<%= message %> <% } %>
';function n(){hj.hq("#"+t).removeClass(t+"_active"),setTimeout(function(){hj.hq("#"+t).remove()},350)}return e.show=function(e,a,r){r=r||"good";var s=hj.rendering.renderTemplate(i+o,{title:e,message:a,status:r,hjStaticHost:new hj.rendering.TrustedString(hj.staticHost)});s?(hj.rendering.addToDom(t,s),hj.hq("."+t+"_close").on("click",n),setTimeout(function(){hj.hq("#"+t).addClass(t+"_active")},1)):hj.log.debug("Notification could not be rendered.","notifications")},e}()},"notifications")()},function(e,t){hj.tryCatch(function(){var e;hj.user=((e={properties:{}}).set=hj.tryCatch(function(t){hj.hq.each(t,function(t,i){e.properties[t]=i}),hj.event.signal("updated-user-properties")},"user.set"),e.get=hj.tryCatch(function(t){return e.properties[t]},"user.get"),e)},"user")()},function(e,t){hj.tryCatch(function(){var e=[];hj.selector=function(t){var i={2:{ignoreClassList:["over","hover","active","selected","scrolled"],ignoreBodyClasses:!0,ignoreUUIDClasses:!0,maxClassesAllowed:5,disallowedTagNameCharactersRE:/[^a-zA-Z0-9-_]/g}};return e[t=!t||t<2?2:t]||(e[t]={get:function(e){return function(e,t){var i=/(#|@|&|~|=|>|`|'|:|"|!|;|,|\?|%|\}|\{|\.|\*|\+|\||\[|\]|\(|\)|\/|\^|\$)/g,o=t.ignoreUUIDClasses?/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/:{test:function(){return!1}},n=hj.tryCatch(function(e){var t,i,o,n,s,d;if(n=function(e,i){for(o=hj.hq(i),t=0;t"+o+i)},"common"),r=function(e){var n=[];return!(void 0===(e=hj.hq.trim((e||"").replace(/\s\s+/g," ")))||""===e||e.indexOf("yui_")>-1||!isNaN(e.charAt(0)))&&((e=e.replace(i,"\\$1")).split(/\s/g).forEach(function(e){!(n.length=0}(e[0])?hj.tryCatch(o,"command")(r):hj.log.debug('Command "'+e[0]+'" blocked due to opt-out',"command"):hj.log.debug('Unknown command: "'+e[0]+'"',"command"),i.length>0&&hj.tryCatch(a)()}return t.vpv=function(e){var t=e[0];hj.optOut||hj.includedInSample&&t&&(hj.log.debug('Sending virtual page view for URL "'+location.protocol+"//"+location.hostname+t+'"',"command"),hj.visitData.trackVpv(location.protocol+"//"+location.hostname+t))},t.stateChange=function(e){var t=e?hj.url.getUrlFromString(e[0]):window.location.href;hj.log.debug('Changing state to URL "'+t+'"',"command"),hj.currentUrl&&hj.currentUrl!=t&&hj._init.reinit(t)},t.formSubmitSuccessful=function(){hj.forms.cmdFormSubmitSuccessful()},t.formSubmitFailed=function(){hj.forms.cmdFormSubmitFailed()},t.tagRecording=function(e){e[0]&&hj.behaviorData.tagRecording(e[0])},t.trigger=function(e){e[0]&&hj.event.signal("trigger:"+e[0])},t.identify=function(e){e[0]&&hj.user.set(e[0])},t.gaSetTracker=function(e){e[0]&&hj.integrations.google_analytics.setTracker(e[0])},t._xhr=function(){},t.ready=function(e){e.forEach(function(e){e()})},e.run=function(){hj.command=this},e.activate=function(){o||(o=!0,i.push=function(){var e;for(e=0;e0&&a())},hj.initialVisitDataSent&&e.activate(),e}(),!0)},"command")()},function(e,t){hj.tryCatch(function(){var e;hj.loader.registerModule("DeferredPageContentModule",(e={},hj.sendPageContent=function(e,t){var i=hj.apiUrlBase+"/sites/"+hj.settings.site_id+"/deferred-page-content/"+e,o=hj.url.getParameter("hjDelay"),n=o||1e3;function a(t){setTimeout(hj.tryCatch(function(){(t||hj.currentDeferredPageContentId===e)&&hj.html.getPageContent(function(e){hj.ajax.post(i,{url:location.href,content:e,token:t})})},"dpc"),n)}t?a(t):hj.ajax.get(i+"/is-empty",function(e){e.is_empty&&(hj.log.debug("Deferred page content is empty: "+e.is_empty,"DeferredPageContent"),a())})},e.run=function(e){hj.hq.each(hj.settings.deferred_page_contents||[],function(t,i){hj.targeting.matchRules(i.targeting,e,function(){return hj.currentDeferredPageContentId=i.id,hj.sendPageContent(i.id),!1})})},e),!1)},"deferredpagecontent")()},function(e,t){hj.tryCatch(function(){hj.dataHjSuppressedAttributeHandler=hj.tryCatch(function(){var e={},t=function(e,t){var i,o,n,a,r;[["src","https://"+hj.insightsHost+"/static/app/img/transparent.png"],["style",(i=t,o="https://"+hj.insightsHost+"/static/app/img/suppressed.png",n=(i.meta||{}).style||{},a=n.width,r=n.height,[i.style,'background: url("'+o+'") repeat !important',a?"width: "+a:"",r?"height: "+r:""].filter(function(e){return e})).join(";")]].forEach(function(t){e.setAttribute(t[0],t[1])})};return e.wrapSetAttribute=hj.tryCatch(function(e){return function(i,o,n){return"data-hj-suppressed"===o&&"object"==typeof n?(t(i,n),!0):e(i,o,n)}}),e},"hj.dataHjSuppressedAttributeHandler")()},"hj.dataHjSuppressedAttributeHandler")()},function(e,t){hj.tryCatch(function(){var e=function(){var t="*",i=16,o=/\S+/g,n=/\s?background[^;]+;?\s?/g;function a(){return Math.random()<.5?-1:1}function r(e,o){return e=e||i,o=o||t,new Array(e+1).join(o)}var s=hj.tryCatch(function(e){var t={};return e.style&&e.style.width||(t.width=e.offsetWidth+"px"),e.style&&e.style.height||(t.height=e.offsetHeight+"px"),t},"Suppresser.getSuppressedImageSize"),d=hj.tryCatch(function(e){return e&&e.length?e.replace(o,function(e){return r(Math.max(1,e.length+a()))}):r(i+a())},"Suppresser.textHandler"),c=hj.tryCatch(function(e){return hj.settings.anonymize_emails&&(e=e.replace(f,d)),hj.settings.anonymize_digits&&(e=e.replace(p,d)),e=e.replace(_,function(e){return e.replace(p,d)})},"Suppresser.textContentHandler"),l=hj.tryCatch(function(){return r()},"Suppresser.passwordHandler"),h=hj.tryCatch(function(){return r(i,1)},"Suppresser.numberHandler"),u=hj.tryCatch(function(e){var t=e?16:10;return new Date(1979,0,1).toISOString().substring(0,t)},"Suppresser.getLocalDateStr"),g=hj.tryCatch(function(){return u(!1)},"Suppresser.dateHandler"),m=hj.tryCatch(function(){return u(!0)},"Suppresser.datetimeHandler"),b=hj.tryCatch(function(){return"00:00"},"Suppresser.timeHandler"),w=hj.tryCatch(function(){return"1979-01"},"Suppresser.monthHandler"),v=hj.tryCatch(function(){return"1979-W1"},"Suppresser.weekHandler"),y=hj.tryCatch(function(e){if(e)return e.replace(n,"")},"Suppresser.imageStyleHandler"),j={full:d,partial:c,textContent:c,password:l,number:h,date:g,datetime:m,"datetime-local":m,time:b,month:w,imgStyle:y,week:v};return{getSuppressedText:function(e,t){return j[e]?j[e](t):d(t)},getSuppressedImageNode:function(t){var i={src:"",meta:{style:s(t)}},o=e.getSuppressedText("imgStyle",t.getAttribute("style"));return o&&(i.style=o),i}}}(),t=["button","reset","submit"],i=hj.tryCatch(function(e){var i=e.tagName.toLowerCase(),o=e.type.toLowerCase();return"input"===i&&t.indexOf(o)>-1},"hj.privacy._isWhitelistedInputType"),o=["default-style","content-type","refresh"],n=function(e){var t=e["http-equiv"]&&e["http-equiv"].value;return!t||o.some(function(e){return!!t.match(e)})},a=hj.tryCatch(function(e){return hj.settings.recording_capture_keystrokes&&(e.attributes&&void 0!==e.attributes["data-hj-whitelist"]||e.className&&e.className.indexOf("data-hj-whitelist")>-1)},"hj.privacy._isUserWhitelisted"),r=["password","email","hidden"],s=hj.tryCatch(function(e){var t=e.tagName.toLowerCase(),i=e.type.toLowerCase();return"input"===t&&r.indexOf(i)>-1},"hj.privacy._isBlacklistedInputType"),d=["address","address1","address2","addressline1","addressline2","cell","cellphone","dateofbirth","dob","email","familyname","firstname","fullname","lastname","mobile","name","phone","postalcode","postcode","surname","tel","telephone","username","zip","zipcode","nationalinsurancenumber","nin","ppsn","security","securitynum","socialsec","socialsecuritynumber","socsec","ssn","adgangskode","authpw","contrasena","contrasenya","contraseña","contrasinal","cyfrinair","fjalëkalim","focalfaire","geslo","hasło","heslo","jelszó","kennwort","kωδικός","kωδικόςπρόσβασης","lozinka","lykilorð","lösenord","motdepasse","parakalw","parola","paroladordine","parole","parool","pasahitza","pass","passord","password","passwort","pw","pwd","pword","pwrd","salasana","sapwd","senha","sifre","slaptažodis","userpw","userpwd","wachtwoord","лозинка","парола","пароль","פּאַראָל","كلمهالسر","पासवर्ड","パスワード","密码","密碼","암호","cc","cccsc","cccvc","cccvv","ccexp","ccexpiry","ccexpmonth","ccexpyear","ccname","ccnum","ccnumber","cctype","creditcard","csc","cvc","cvv","exp","accountnum","accountnumber","bic","iban","ibanaccountnum","ibanaccountnumber","pin","pinno","pinnum","secq","secret","secretq","secretquestion","securityq","securityquestion","sortcode","swift"],c=hj.tryCatch(function(e){return[e.name,e.id].map(function(e){return e.replace(/[\s_-]+/g,"").toLocaleLowerCase()}).some(function(e){return d.indexOf(e)>-1})},"hj.privacy._hasSuppressedNameOrId"),l=/\d+/,p=new RegExp(l.source,"g"),h=hj.tryCatch(function(e){return l.test(e)},"hj.privacy._hasDigitSequence"),u=/([+(]{0,2}\d[-_ ()\/]{0,4}){9,}/,_=new RegExp(u.source,"g"),g=hj.tryCatch(function(e){return u.test(e)},"hj.privacy._hasCCNumOrSSN"),m=/[^@\s]+@[^@\s]+\.[^@\s]+/,f=new RegExp(m.source,"g"),b=hj.tryCatch(function(e){return e.indexOf("@")>-1&&m.test(e)},"hj.privacy._hasEmail"),w=[function(e){return!!hj.settings.anonymize_digits&&h(e)},function(e){return!hj.settings.anonymize_digits&&g(e)},function(e){return!!hj.settings.anonymize_emails&&b(e)}],v=["style","script"],y=hj.tryCatch(function(e){if(e&&e.tagName){var t=e.tagName.toLowerCase();return v.indexOf(t)>-1}},"hj.privacy._isWhitelistedElement"),j=hj.tryCatch(function(e,t){return(!t||!y(t))&&w.some(function(t){return t(e)})},"hj.privacy._shouldSuppressTextContent"),k=hj.tryCatch(function(e){return e.value||e.textContent}),x=[s,c,function(e){return g(k(e))},function(e){return b(k(e))}],C=hj.tryCatch(function(e){return x.some(function(t){return t(e)})},"hj.privacy._shouldSuppressInputOrTextarea"),S=hj.tryCatch(function(e){return"object"==typeof e.attributes&&(void 0!==e.attributes["data-hj-suppress"]||void 0!==e.attributes["data-hj-masked"])||"string"==typeof e.className&&e.className&&e.className.indexOf("data-hj-suppress")>-1},"hj.privacy._isExplicitlySuppressed"),A=hj.tryCatch(function(e){var t=Object.prototype.toString.call(e);return-1!==["[object HTMLDocument]","[object Document]"].indexOf(t)},"hj.privacy._isDocument"),z=hj.tryCatch(function(e){for(;e&&!A(e);){if(S(e))return!0;e=e.parentNode?e.parentNode:null}return!1},"hj.privacy._isSelfOrAncestorSuppressed");hj.privacy=hj.tryCatch(function(){var t={};return t.isRiskyNotWhitelistedOrSuppressedElement=hj.tryCatch(function(e,t){if(void 0===e||!e||void 0===e.tagName)return!1;if(hj.settings.suppress_all)return!0;if(hj.settings.suppress_text)return"IMG"!==e.tagName||!t||"src"!==t.name&&"style"!==t.name||z(e);var o="TEXTAREA"===e.tagName||"INPUT"===e.tagName&&!i(e);return o&&a(e)?C(e):o||z(e)},"hj.privacy.isRiskyNotWhitelistedOrSuppressedElement"),t.isAttributeSuppressable=hj.tryCatch(function(e,t,i,o){var a={INPUT:{attrs:["value"]},TEXTAREA:{attrs:["value"]},A:{attrs:["href"],shouldSuppressAttrValueCheck:function(e){return!!!e.match(/^data:/)}},OPTION:{attrs:["label","value"]},PROGRESS:{attrs:["value"]},OPTGROUP:{attrs:["label"]},IMG:{attrs:["alt"]},DIV:{attrs:["title"]},META:function(e,t,i){switch(e){case"content":return(!i.name||"viewport"!==i.name.value)&&(!i["http-equiv"]||!n(i));case"name":return"viewport"!==t;case"http-equiv":return!n(i);case"charset":return!1;default:return!0}}}[e];return void 0!==a&&("function"==typeof a?a(t,i,o):!(a.attrs.indexOf(t)<0)&&(void 0===a.shouldSuppressAttrValueCheck||a.shouldSuppressAttrValueCheck(i)))},"hj.privacy.isAttributeSuppressable"),t.hasPotentialPIIData=hj.tryCatch(function(e,t){return t=A(t)?null:t,j(e,t)},"hj.privacy.hasPotentialPIIData"),t.getSuppressedText=hj.tryCatch(function(t,i){return e.getSuppressedText(t,i)},"hj.privacy.getSuppressedText"),t.getSuppressedTextNode=hj.tryCatch(function(i,o){var n=i.parentNode||null,a=(o=o||t.isRiskyNotWhitelistedOrSuppressedElement(n))||n&&"textarea"===n.type?"full":"partial";return{content:(o=!y(n)&&(o||t.hasPotentialPIIData(i.textContent,n)))?e.getSuppressedText(a,i.textContent):i.textContent,shouldSuppressNode:o}}),t.getSuppressedNodeAttribute=hj.tryCatch(function(i,o,n){var a=o.value,r=o.name;if("data-hj-suppressed"!==r)return"IMG"!==i.tagName||"src"!==r&&"srcset"!==r&&"style"!==r||(n=t.isRiskyNotWhitelistedOrSuppressedElement(i,o),t.isRiskyNotWhitelistedOrSuppressedElement(i,o)&&(r="data-hj-suppressed",a=e.getSuppressedImageNode(i))),t.isAttributeSuppressable(i.tagName,r,a,i.attributes)&&((n=n||t.isRiskyNotWhitelistedOrSuppressedElement(i))||"META"===i.tagName?a=e.getSuppressedText("full",a):t.hasPotentialPIIData(a)&&(a=e.getSuppressedText("partial",a))),{name:r,value:a,shouldSuppressNode:n}}),t.getSuppressedNode=hj.tryCatch(function(e,i){for(var o={},n=i,a=0;ai&&(i=e,hj.eventStream.write("scroll_reach",{max_bottom:i},!0))}},"behavior-data.scrollReach.send"),e},"behavior-data.scrollReach")(),l=hj.tryCatch(function(){var e,t={},i=!1,o=!1;return t.listen=hj.tryCatch(function(){i||(hj.log.debug("Setting up scroll listeners.","events"),window.addEventListener("scroll",t.update,!0),setInterval(t.send,100),0!==hj.ui.getScrollPosition().top&&t.update(),i=!0)},"behavior-data.scroll.listen"),t.update=hj.tryCatch(function(t){e=t?t.target===window.document?window:t.target:window,o=!0},"behavior-data.scroll.update"),t.send=hj.tryCatch(function(){var t,i;n&&o&&(t=(e=e||window)===window?"window":hj.selector(w).get(hj.hq(e))||"window",i=hj.ui.getScrollPosition(e),hj.eventStream.write("scroll",{elem:t,time:hj.time.getNow(),timestamp:Date.now(),x:i.left,y:i.top}),o=!1)},"behavior-data.scroll.send"),t},"behavior-data.scroll")(),u=hj.tryCatch(function(){var e,t={},i=!1;return t.listen=hj.tryCatch(function(){i||(hj.log.debug("Setting up screen size change listeners.","events"),e=hj.ui.getWindowSize(),setInterval(t.checkResize,1e3),t.checkResize(),i=!0)},"behavior-data.viewportResize.listen"),t.checkResize=hj.tryCatch(function(){var i=hj.ui.getWindowSize();i.width===e.width&&i.height===e.height||(e=i,t.send())},"behavior-data.viewportResize.checkResize"),t.send=hj.tryCatch(function(){n&&hj.eventStream.write("viewport_resize",{time:hj.time.getNow(),timestamp:Date.now(),w:e.width,h:e.height}).flush()},"behavior-data.viewportResize.send"),t},"behavior-data.viewportResize")(),r=hj.tryCatch(function(){var e={},t=!1,i=!1,o=!1,a=[];return e.listen=hj.tryCatch(function(){t||(hj.log.debug("Setting up key press listeners.","events"),hj.hq(document).on("input","input",e.update),hj.hq(document).on("blur","input",e.send),hj.hq(document).on("input","textarea",e.update),hj.hq(document).on("blur","textarea",e.send),t=!0)},"behavior-data.keyPress.listen"),e.update=hj.tryCatch(function(e){var t=hj.hq(e.target),n=t.val();o=o||hj.privacy.isRiskyNotWhitelistedOrSuppressedElement(e.target),a.push({time:hj.time.getNow(),timestamp:Date.now(),selector:hj.selector().get(t),text:n,type:e.target.type,suppression:o?"full":"none"}),i=!0},"behavior-data.keyPress.update"),e.send=hj.tryCatch(function(){if(n&&i){if(o){var e=a[0],t=a[a.length-1],r=hj.privacy.getSuppressedText(e.type,t.text),s=Math.floor((t.time-e.time)/Math.max(r.length,1));a=[];for(var d=0;ddocument.body.clientWidth||document.body.clientHeight&&s>document.body.clientHeight||(n++,t&&clearInterval(t),t=setTimeout(r,e.time),function(t,i){var o=Math.abs(t-a.x),n=Math.abs(i-a.y);Math.sqrt(Math.pow(o,2)+Math.pow(n,2))>e.distance&&r()}(i.clientX,i.clientY),a.x=i.clientX,a.y=i.clientY,n===e.clicks&&hj.userBehavior.send("rageclick"))}return i.listen=function(){e=o[hj.deviceDetection.getDevice()],hj.hq(document).on("mousedown.user_behavior_rageclick",s)},i.disable=function(){hj.hq(document).on("mousedown.user_behavior_rageclick")},i}(),t=function(){var e,t,i={},o={desktop:{time:1e3,directionChanges:4},mobile:{time:1e3,directionChanges:4},tablet:{time:1e3,directionChanges:4}},n=0,a=!1,r=0;function s(){n=0,a=!1}function d(){t&&clearInterval(t),t=setTimeout(s,e.time);var i=hj.hq(window).scrollTop(),o=r-i<0?"down":"up";a&&o!==a&&++n===e.directionChanges&&hj.userBehavior.send("wildscroll"),a=o,r=i}return i.listen=function(){e=o[hj.deviceDetection.getDevice()],hj.hq(document).on("scroll.user_behavior_wildscroll",d)},i.disable=function(){hj.hq(document).on("scroll.user_behavior_wildscroll")},i}(),i=function(){var e,t,i={},o={desktop:{time:100,distance:200,directionChanges:5},mobile:{time:100,distance:200,directionChanges:5},tablet:{time:100,distance:200,directionChanges:5}},n=0,a={x:!1,y:!1},r={x:0,y:0},s={x:0,y:0};function d(){n=0,a.x=!1,a.y=!1}function c(i){var o={x:i.clientX,y:i.clientY},c={x:o.x
<%=legalName%>
',{p:t.widgetAttributePrefix,legalName:i,privacyPolicyUrl:new hj.rendering.TrustedString(o)})),n}),t.enterFullScreen=hj.tryCatch(function(){var e,i;t.isPhoneOrTablet()&&((e=hj.hq("body")).addClass("_hj-f5b2a1eb-9b07_position_fixed"),0===hj.hq("#hotjar-viewport-meta").length&&((i=document.createElement("meta")).id="hotjar-viewport-meta",i.name="viewport",i.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.getElementsByTagName("head")[0].appendChild(i)),e.addClass("_hj-f5b2a1eb-9b07_fullscreen_page"))},"common"),t.exitFullScreen=hj.tryCatch(function(){hj.hq("#hotjar-viewport-meta").remove(),hj.hq("body").removeClass("_hj-f5b2a1eb-9b07_fullscreen_page").removeClass("_hj-f5b2a1eb-9b07_position_fixed")},"common"),t.init=hj.tryCatch(function(){hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_toggle_widget").on("click",hj.widget.toggleWidget),hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_open_widget").on("click",{state:"open"},hj.widget.changeState),hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_dismiss_widget").on("click",hj.widget.dismissWidget)},"common"),t.isNarrowScreen=hj.tryCatch(function(){return hj.hq(window).width()<768},"common"),t.isPhoneOrTablet=hj.tryCatch(function(){return hj.widget.isVeryNarrowScreen()||"phone"===hj.utils.deviceType()||"tablet"===hj.utils.deviceType()},"common"),t.isShortScreen=hj.tryCatch(function(){return hj.hq(window).height()<400},"common"),t.isVeryNarrowScreen=hj.tryCatch(function(){return hj.hq(window).width()<=450},"common"),t.openWidget=hj.tryCatch(function(){var e=hj.isPreview?0:300;hj.widget.ctrl.removeClass("_hj-f5b2a1eb-9b07_widget_collapsed").addClass("_hj-f5b2a1eb-9b07_widget_open").animate({bottom:"0"},e),i="open"},"common"),t.removeActiveWidget=function(e){e=e||function(){},t.activeWidget?(t.activeWidget.removeCallback(e),delete t.activeWidget):e()},t.runLatestMatchingWidget=function(){var e;n.forEach(function(t){(!e||e.created-1?"rtl":"ltr"},"common"),t.toggleWidget=hj.tryCatch(function(){hj.widget.ctrl.hasClass("_hj-f5b2a1eb-9b07_widget_hidden")?hj.widget.changeState(null,i):(hj.widget.changeState(null,"hidden"),hj.widget.setMinimized())},"common"),t.zIndexPositionReset=hj.tryCatch(function(){hj.hq("._hj-f5b2a1eb-9b07_lower_zindex").removeClass("_hj-f5b2a1eb-9b07_lower_zindex")},"common"),t.zIndexPositionTop=hj.tryCatch(function(){var e=hj.hq("*");0===hj.hq("._hj-f5b2a1eb-9b07_lower_zindex").length&&hj.hq.each(e,function(e,t){t.style.zIndex>="2147483640"&&hj.hq(t).addClass("_hj-f5b2a1eb-9b07_lower_zindex")})},"common"),t.commonCSS=' ',t),hj.widgetDelay=function(){var e={},t=null;return e.clear=hj.tryCatch(function(){clearTimeout(t),t=null},"hj.widgetDelay.clear"),e.set=hj.tryCatch(function(i,o){e.clear(),t=setTimeout(i,o)},"hj.widgetDelay.set"),e}()},"widgets")()},function(e,t){hj.tryCatch(function(){hj.loader.registerModule("Feedback",function(){var e={},t={granted:null,request:!1},i=['
',hj.widget.commonCSS,'','
\x3c!-- Minimized State --\x3e
<%=hj.widget._("feedback")%>
<% if (widgetStyle.emotion === "default") { %>
<% } %>
<%= feedback.content.initial %> <%= feedback.content.thankyou %>
\x3c!-- Opened State --\x3e
\x3c!-- STEP 1: EMOTION --\x3e

<%= feedback.content.emotion %>

<% if (widgetStyle.emotion === "default" || widgetStyle.emotion === "smiley" || widgetStyle.emotion === "emoji") { %> <% if (widgetStyle.emotion === "default") { %> <% } %> <% } %> <% if (widgetStyle.emotion === "star") { %> <% } %> <%=hj.widget._("hate")%>
<% if (widgetStyle.emotion === "default" || widgetStyle.emotion === "smiley" || widgetStyle.emotion === "emoji") { %> <% if (widgetStyle.emotion === "default") { %> <% } %> <% } %> <% if (widgetStyle.emotion === "star") { %> <% } %> <%=hj.widget._("dislike")%>
<% if (widgetStyle.emotion === "default" || widgetStyle.emotion === "smiley" || widgetStyle.emotion === "emoji") { %> <% if (widgetStyle.emotion === "default") { %> <% } %> <% } %> <% if (widgetStyle.emotion === "star") { %> <% } %> <%=hj.widget._("neutral")%>
<% if (widgetStyle.emotion === "default" || widgetStyle.emotion === "smiley" || widgetStyle.emotion === "emoji") { %> <% if (widgetStyle.emotion === "default") { %> <% } %> <% } %> <% if (widgetStyle.emotion === "star") { %> <% } %> <%=hj.widget._("like")%>
<% if (widgetStyle.emotion === "default" || widgetStyle.emotion === "smiley" || widgetStyle.emotion === "emoji") { %> <% if (widgetStyle.emotion === "default") { %> <% } %> <% } %> <% if (widgetStyle.emotion === "star") { %> <% } %> <%=hj.widget._("love")%>
<% if (features.selectElement) { %>
<%=hj.widget._("select_the_area")%>
<% } %>
\x3c!-- STEP 2: EMAIL --\x3e

<%= feedback.content.email %>

\x3c!-- STEP 3: THANK YOU AND CONSENT --\x3e

<%= feedback.content.thankyou %>

<%=hj.widget.renderLegal(feedback.showLegal)%>
\x3c!-- FOOTER --\x3e
\x3c!-- PAGE HIGHLIGHTER --\x3e
<%=hj.widget._("select_the_area")%>
\x3c!-- DIMMERS (OVERLAY) + ELEMENT HIGHLIGHTER --\x3e
'].join("");function o(){var e,i={showMinimizedMessageTimer:function(){}},o=hj.isPreview?0:200,n=hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_minimized_message"),r=hj.hq("#"+hj.widget.widgetAttributePrefix+"_action_submit"),s=hj.hq("#"+hj.widget.widgetAttributePrefix+"_action_skip"),d=hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback");i.resetDataValues=hj.tryCatch(function(){return{comment:null,email:null,emotion:null,page_content:null,selectors:hj.widget.feedbackData.auto_screenshot?["html"]:null,viewport:[]}},"feedback"),i.goToFinalState=hj.tryCatch(function(){t.granted?i.endIncomingFeedback(!0):i.goToState("consent")},"feedback"),i.goToState=hj.tryCatch(function(e,n){n=n||0;var a=o;switch("initialized"===e&&(a=0,e="minimized"),i.currentState=e,0===n?d.attr("data-state",e):setTimeout(function(){d.attr("data-state",e)},n),e){case"minimized":hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_open").removeClass("fade"),hj.widget.zIndexPositionReset(),hj.widget.exitFullScreen(),i.resetScreenshotState(a),setTimeout(function(){i.resetWidget()},n);break;case"emotion":hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_open").addClass("fade"),hj.widget.zIndexPositionTop(),i.animateFaces(),t.request=hj.widget.feedbackData.ask_for_consent,hj.isPreview?t.granted=!1:hj.request.getConsentGranted(function(e){t.granted=e}),i.setViewportContent();break;case"comment":(hj.widget.isPhoneOrTablet()||"phone"===hj.widget.feedbackData.previewDevice)&&hj.widget.enterFullScreen(),hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_open").addClass("fade"),hj.isPreview||"desktop"!==hj.utils.deviceType()||hj.hq("#"+hj.widget.widgetAttributePrefix+"_emotion_comment").focus();break;case"email":hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_open").addClass("fade"),i.resetScreenshotState(a),r.addClass(hj.widget.widgetAttributePrefix+"_btn_disabled"),hj.isPreview||hj.hq("#"+hj.widget.widgetAttributePrefix+"_email").focus();break;case"consent":hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback_open").addClass("fade")}},"feedback"),i.submitState=hj.tryCatch(function(e,n){switch(e=e||i.currentState){case"emotion":i.data.emotion=n,i.canSendResponse=!0,i.setViewportContent(function(){i.goToState("comment")});break;case"comment":i.data.comment=hj.hq("#"+hj.widget.widgetAttributePrefix+"_emotion_comment").val(),""===i.data.comment&&(i.data.comment=null),i.setViewportContent(function(){!1===hj.widget.feedbackData.content.email?t.request?(i.canSendResponse&&(i.sendFeedbackResponse(),i.canSendResponse=!1),i.goToFinalState()):i.endIncomingFeedback(!0):i.goToState("email")});break;case"email":i.validateCurrentState()&&(i.data.email=hj.hq('[data-bind="email"]').val(),t.request?(i.canSendResponse&&(i.sendFeedbackResponse(),i.canSendResponse=!1),i.goToFinalState()):i.endIncomingFeedback(!0));break;case"consent":i.goToState("minimized",o)}},"feedback"),i.skipCurrentState=hj.tryCatch(function(){"email"===i.currentState&&(t.request?(i.canSendResponse&&(i.sendFeedbackResponse(),i.canSendResponse=!1),i.goToFinalState()):(i.data.email=null,i.endIncomingFeedback(!0)))},"feedback"),i.validateCurrentState=hj.tryCatch(function(){var e=!1,t=hj.hq('[data-bind="comment"]').val(),o=hj.hq('[data-bind="email"]').val();switch(i.currentState){case"comment":t&&(e=!0);break;case"email":o&&hj.utils.validateEmail(o)&&(e=!0)}return e},"feedback"),i.startIncomingFeedback=hj.tryCatch(function(){var e=hj.widget.feedbackData.position,t=hj.cookie.get("_hjShownFeedbackMessage"),o=hj.isPreview?0:2e3;i.goToState("initialized"),"bottom_left"!==e&&"bottom_right"!==e||t&&!hj.isPreview||(n.attr("data-message","initial"),i.showMinimizedMessageTimer=setTimeout(function(){i.setMinimizedMessageVisibility(!0),hj.isPreview||hj.cookie.set("_hjShownFeedbackMessage",!0,1)},o))},"feedback"),i.endIncomingFeedback=hj.tryCatch(function(e){i.canSendResponse&&i.sendFeedbackResponse(),i.goToState("minimized",o),e&&i.showThankYouMessage()},"feedback"),i.sendFeedbackResponse=hj.tryCatch(function(){var e;e={response:{emotion:parseInt(i.data.emotion,10),message:i.data.comment,email:i.data.email},window_width:i.data.window_width,window_height:i.data.window_height},null!==i.data.selectors&&(e.page_content=i.data.page_content,e.viewport=i.data.viewport,e.selectors=i.data.selectors),hj.isPreview||hj.request.saveFeedbackResponse(e,function(e){i.feedbackResponseId=e.feedback_response_id,i.awaitResponseId&&i.awaitResponseId()})},"feedback"),i.setViewportContent=hj.tryCatch(function(e){var t=hj.hq("body").hasClass(hj.widget.widgetAttributePrefix+"_position_fixed"),o=hj.ui.getScrollPosition(),n=hj.ui.getDocumentSize(),a=o.top,r=o.left,s=a+n.height,d=r+n.width;i.data.window_width&&i.data.window_height||(i.data.window_width=n.width,i.data.window_height=n.height),t||i.data.viewport[0]===a&&i.data.viewport[1]===r&&i.data.viewport[2]===s&&i.data.viewport[3]===d?e&&e():hj.html.getPageContent(function(t){i.data.viewport=[a,r,s,d],i.data.window_width=n.width,i.data.window_height=n.height,i.data.page_content=t,e&&e(t)},["#_hj_feedback_container"])},"feedback"),i.setScreenshotState=hj.tryCatch(function(e){var t=hj.hq("body"),o=hj.hq("#"+hj.widget.widgetAttributePrefix+"_toolset_action_select");if(!hj.isPreview)switch(d.attr("data-screenshot",e),e){case"default":i.data.selectors=i.resetDataValues().selectors,d.removeAttr("data-screenshot"),o.removeClass(hj.widget.widgetAttributePrefix+"_toolset_action_active"),hj.widget.isPhoneOrTablet()&&t.addClass(hj.widget.widgetAttributePrefix+"_position_fixed"),i.cancelElementHighlighting(),hj.ui.enableScrolling();break;case"element":i.resetHighlight(),i.enableElementHighlighting(),hj.ui.enableScrolling(),t.removeClass(hj.widget.widgetAttributePrefix+"_position_fixed");break;case"elementSelected":hj.widget.isPhoneOrTablet()&&i.setViewportContent(function(){t.addClass(hj.widget.widgetAttributePrefix+"_position_fixed")}),hj.isPreview||"desktop"!==hj.utils.deviceType()||hj.hq("#"+hj.widget.widgetAttributePrefix+"_emotion_comment").focus(),i.cancelElementHighlighting(),o.addClass(hj.widget.widgetAttributePrefix+"_toolset_action_active")}},"feedback"),i.enableElementHighlighting=hj.tryCatch(function(){var e={x:0,y:0};function t(e){var t=hj.hq(e)[0];o(e)&&i.highlightElement(t)}function o(e){return!hj.hq(e).hasClass(hj.widget.widgetAttributePrefix+"_feedback_selection_ignore")}hj.hq("html").attr("data-hotjar-cursor-pointer","true"),hj.hq("body").on("mouseover.feedback",hj.tryCatch(function(i){i.stopPropagation(),t(i.target),"desktop"===hj.utils.deviceType()&&(e={x:i.clientX,y:i.clientY})},"feedback")),hj.hq(document).on("scroll.feedback resize.feedback",hj.tryCatch(function(){t(document.elementFromPoint(e.x,e.y))},"feedback")),hj.hq("body").on("mousedown.feedback",hj.tryCatch(function(e){var n,a;e.stopPropagation(),e.preventDefault(),o(e.target)&&(t(e.target),n=e.target,a=hj.hq(n),i.data.selectors=[hj.selector().get(a)],i.setScreenshotState("elementSelected"),hj.ui.disableScrolling(function(){i.highlightElement(a[0])}))},"feedback"),void 0,!0)},"feedback"),i.cancelElementHighlighting=hj.tryCatch(function(){hj.hq("body").off("mouseover.feedback"),hj.hq("body").off("mousedown.feedback",void 0,void 0,!0),hj.hq(document).off("scroll.feedback resize.feedback"),hj.hq("html").removeAttr("data-hotjar-cursor-pointer")},"feedback"),i.resetHighlight=hj.tryCatch(function(){var e={top:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_top"),right:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_right"),bottom:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_bottom"),left:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_left")},t=document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_highlighter");hj.hq(e.top).removeAttr("style"),hj.hq(e.right).removeAttr("style"),hj.hq(e.bottom).removeAttr("style"),hj.hq(e.left).removeAttr("style"),hj.hq(t).removeAttr("style")}),i.highlightElement=hj.tryCatch(function(e){var t=e.getBoundingClientRect(),i={top:t.top,left:t.left,width:t.width,height:t.height},o={top:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_top"),right:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_right"),bottom:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_bottom"),left:document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_dimmer_left")},n=document.getElementById(hj.widget.widgetAttributePrefix+"_feedback_content_highlighter"),a={x:8,y:8},r={top:i.top-a.y,left:i.left-a.x,height:i.height+2*a.y,width:i.width+2*a.x};i.top<0&&(r.height=i.height+i.top+a.y,a.y=0,i.height=i.height+i.top,i.top=1,r.top=1),o.top.style.top="0",o.top.style.right="0",o.top.style.left="0",o.top.style.height=Math.max(0,r.top)+"px",o.right.style.top=r.top+"px",o.right.style.right="0",o.right.style.left=r.left+r.width+"px",o.right.style.bottom="0",o.bottom.style.top=r.top+r.height+"px",o.bottom.style.width=Math.max(0,r.width)+"px",o.bottom.style.left=r.left+"px",o.bottom.style.bottom="0",o.left.style.top=r.top+"px",o.left.style.width=Math.max(0,r.left)+"px",o.left.style.left="0",o.left.style.bottom="0",i.height<0?n.style.top="-400px":(n.style.top=i.top-2-a.y+"px",n.style.left=i.left-2-a.y+"px",n.style.width=i.width-4+2*a.x+"px",n.style.height=i.height-4+2*a.y+"px")},"feedback"),i.showThankYouMessage=hj.tryCatch(function(){var e=hj.isPreview?0:500;hj.widget.feedbackData.content.thankyou&&(n.attr("data-message","thankyou"),i.setMinimizedMessageVisibility(!0),setTimeout(function(){i.wink()},e),hj.isPreview||setTimeout(function(){i.setMinimizedMessageVisibility(!1)},5e3))},"feedback"),i.setMinimizedMessageVisibility=hj.tryCatch(function(e){e?d.attr("data-show-message","true"):(clearTimeout(i.showMinimizedMessageTimer),d.removeAttr("data-show-message"))},"feedback"),i.resetWidget=hj.tryCatch(function(){i.canSendResponse=!1,i.currentState=null,i.data=i.resetDataValues(),hj.widget.enableSubmit(),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_state-1").removeAttr("data-emotion-chosen"),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_toolset_action_select").removeClass(hj.widget.widgetAttributePrefix+"_toolset_action_active"),hj.widget.ctrl.find("[data-emotion-option]").removeClass("fade").removeClass("fadeTransition").removeAttr("data-emotion-active"),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_icon_emotion_star").attr("data-score-state","off"),r.addClass(hj.widget.widgetAttributePrefix+"_btn_disabled"),hj.widget.ctrl.find('[data-bind="comment"]').val(""),hj.widget.ctrl.find('[data-bind="email"]').val(""),hj.hq("body *").off("mouseover.feedback mousedown.feedback"),hj.hq(document).off("scroll.feedback resize.feedback")},"feedback"),i.resetScreenshotState=hj.tryCatch(function(e){d.attr("data-screenshot",""),e?setTimeout(function(){d.removeAttr("data-screenshot")},e):d.removeAttr("data-screenshot"),hj.hq("html").removeAttr("data-hotjar-cursor-pointer"),hj.ui.enableScrolling()},"feedback"),i.selectStarRating=hj.tryCatch(function(e){var t;if(!isNaN(e))for(var i=-1;i<4;i++)t=i+1<=parseInt(e)?"on":"off",hj.hq("."+hj.widget.widgetAttributePrefix+'_icon_emotion_star[data-emotion-score="'+(i+1)+'"]').attr("data-score-state",t)},"feedback"),i.animateFaces=hj.tryCatch(function(){var e=hj.hq("[data-emotion-option]");e.addClass("fadeTransition"),setTimeout(function(){e.addClass("fade")},o),setTimeout(function(){e.removeClass("fadeTransition")},4*o)},"feedback"),i.wink=hj.tryCatch(function(){var e=hj.hq("."+hj.widget.widgetAttributePrefix+"_hotjar_buddy");e.attr("data-emotion-score","wink"),setTimeout(function(){e.attr("data-emotion-score","3")},800)},"feedback"),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_feedback_minimized_message_close").on("click",hj.tryCatch(function(e){e.stopPropagation(),i.setMinimizedMessageVisibility(!1)},"feedback")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_hotjar_buddy, ."+hj.widget.widgetAttributePrefix+"_feedback_minimized_message, ."+hj.widget.widgetAttributePrefix+"_feedback_minimized_label").on("click",hj.tryCatch(function(){i.goToState("emotion"),i.setMinimizedMessageVisibility(!1)},"feedback")),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_feedback_open_close, #"+hj.widget.widgetAttributePrefix+"_feedback_open_close_phone").on("click",hj.tryCatch(function(){i.endIncomingFeedback()},"feedback")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_emotion_type_star ."+hj.widget.widgetAttributePrefix+"_emotion_option").on("mouseover",hj.tryCatch(function(e){var t=hj.hq(e.target).find("[data-emotion-score]").attr("data-emotion-score");i.selectStarRating(t)},"feedback")),hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_emotion_content._hj-f5b2a1eb-9b07_emotion_type_star").on("mouseleave",hj.tryCatch(function(){var e=hj.hq("#"+hj.widget.widgetAttributePrefix+"_state-1").attr("data-emotion-chosen");i.selectStarRating(e)},"feedback")),hj.widget.ctrl.find('[data-bind="emotion"]').on("click",hj.tryCatch(function(){var e=hj.hq(this).attr("data-emotion-option");hj.hq("#"+hj.widget.widgetAttributePrefix+"_state-1").attr("data-emotion-chosen",e),hj.hq("[data-emotion-active]").removeAttr("data-emotion-active"),hj.hq("#"+hj.widget.widgetAttributePrefix+'_state-1 [data-emotion-option="'+e+'"]').attr("data-emotion-active","true"),i.selectStarRating(e),i.submitState("emotion",e)},"feedback")),hj.widget.ctrl.find("[data-consent]").on("click",hj.tryCatch(function(){var e="true"===hj.hq(this).attr("data-consent");!hj.isPreview&&e&&(i.feedbackResponseId?hj.request.grantConsent({response_type:"feedback_response",response_id:i.feedbackResponseId,message:hj.widget._("consent")}):i.awaitResponseId=function(){hj.request.grantConsent({response_type:"feedback_response",response_id:i.feedbackResponseId,message:hj.widget._("consent")})}),i.submitState("consent",e)},"feedback")),r.on("click",hj.tryCatch(function(){hj.hq(this).hasClass(hj.widget.widgetAttributePrefix+"_btn_disabled")||i.submitState()},"feedback")),s.on("click",hj.tryCatch(function(){i.skipCurrentState()},"feedback")),hj.widget.ctrl.find('[data-bind="email"]').on("keyup change",hj.tryCatch(function(e){i.validateCurrentState()?hj.widget.enableSubmit():hj.widget.disableSubmit(),13===e.keyCode&&i.submitState()},"feedback")),hj.widget.ctrl.find('[data-bind="comment"]').on("keyup change",hj.tryCatch(function(){i.validateCurrentState()?hj.widget.enableSubmit():hj.widget.disableSubmit()},"feedback")),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_feedback_content_highlighter, #"+hj.widget.widgetAttributePrefix+"_toolset_action_select").on("click",hj.tryCatch(function(){i.setScreenshotState("element")},"feedback")),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_feedback_top_message_select_close span, #"+hj.widget.widgetAttributePrefix+"_feedback_content_highlighter_close").on("click",hj.tryCatch(function(e){i.setScreenshotState("default"),e.stopPropagation()},"feedback")),e=hj.widget.feedbackData.activeStepInPreview,hj.isPreview&&(i.resetWidget(),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_transition").addClass(hj.widget.widgetAttributePrefix+"_transition_duration_0"),"initial"!==e&&e?"thankYou"===e?i.endIncomingFeedback(!0):"email"===e&&!1===hj.widget.feedbackData.content.email?i.goToState("emotion"):"consent"===e?i.goToState("consent"):i.goToState(e):i.startIncomingFeedback()),hj.hq(window).on("resize",hj.tryCatch(function(){a()},"feedback")),hj.tryCatch(a,"feedback")(),hj.isPreview||i.startIncomingFeedback()}function n(){var e=hj.ui.getWindowSize().height>100?Math.round(hj.ui.getWindowSize().height/2):300;hj.log.debug("Rendering feedback widget.","feedback"),hj.widget.setLanguage(hj.widget.feedbackData.language),null==hj.widget.feedbackData.auto_screenshot&&(hj.widget.feedbackData.auto_screenshot=!0);var t=hj.rendering.renderTemplate(i,{apiUrlBase:new hj.rendering.TrustedString(hj.apiUrlBase),hjStaticHost:new hj.rendering.TrustedString(hj.staticHost),hjid:_hjSettings.hjid,cta:new hj.rendering.TrustedString(hj.widget.ctaLinks.feedback),p:hj.widget.widgetAttributePrefix,preview:hj.isPreview||!1,features:{selectElement:!(hj.utils.isSafari()&&hj.widget.isPhoneOrTablet())},feedback:{id:hj.widget.feedbackData.id,content:hj.widget.feedbackData.content,effectiveShowBranding:hj.widget.feedbackData.effective_show_branding,language:hj.widget.feedbackData.language,position:hj.widget.feedbackData.position,showLegal:hj.widget.feedbackData.show_legal},widgetStyle:{accentColor:hj.widget.feedbackData.background,accentTextColor:"light"===hj.widget.feedbackData.skin?"#ffffff":"#333333",backgroundColor:"#ffffff",darkGrey:"#333333",disabledColor:"#cccccc",selectionColor:"#ffd902",selectionTextColor:"#3c3c3c",emotion:hj.widget.feedbackData.emotion_style||"default",middlePositionPixels:e}});t?(hj.widget.ctrl=hj.rendering.addToDom("_hj_feedback_container",t),o()):hj.log.debug("Feedback widget #"+hj.widget.feedbackData.id+" could not be rendered.","feedback")}function a(){var e=hj.widget.feedbackData.previewDevice,t=e||hj.utils.deviceType(),i="desktop"===t?"desktop":"touch";hj.widget.ctrl.attr("data-device",t),hj.widget.ctrl.attr("data-viewmode",i)}return e.run=hj.tryCatch(function(t){hj.hq.each(hj.settings.feedback_widgets||[],function(i,o){hj.targeting.matchRules(o.targeting,t,hj.tryCatch(function(){hj.log.debug("Feedback widget #"+o.id+" has matched.","feedback"),!hj.widget.data||hj.widget.data.id===o.id&&"incoming"===hj.widget.data.type?(o.created_epoch_time-=31536e4,hj.widget.addMatchingWidget("incoming",o.id,o.created_epoch_time,function(){hj.widget.feedbackData=o,hj.rendering.callAccordingToCondition(hj.widget.feedbackData,"feedback",hj.tryCatch(n,"feedback"))},e.remove)):hj.log.debug("Another feedback widget is already present.","feedback")},"feedback.run.matchRules-callback"))})},"feedback"),e.remove=hj.tryCatch(function(e){hj.widget.feedbackData?(hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback").length>0&&hj.hq("#"+hj.widget.widgetAttributePrefix+"_feedback").parent().remove(),delete hj.widget.feedbackData,hj.hq(window).off("resize"),setTimeout(function(){e()},1)):e()}),hj.isPreview&&(window._hjFeedbackReload=hj.tryCatch(function(e){hj.widget.feedbackData=e,hj.settings.legal_name=e.legal_name,hj.settings.privacy_policy_url=e.privacy_policy_url,hj.tryCatch(n,"feedback")()},"feedback")),e}(),!0)},"feedback")()},function(e,t){hj.tryCatch(function(){hj.loader.registerModule("Polls",function(){var e={},t=[],i=[],o=0,n={granted:null,request:!1},a=['
',hj.widget.commonCSS,'','

<% for (var q = 0; q < poll.questions.length; q++) { %> <%= poll.questions[q].text %> <% } %>

<% for (var q = 0; q < poll.questions.length; q++) { %>
<% if (poll.questions[q].type === "single-close-ended") { %>
<% for (var i = 0; i < poll.questions[q].answers.length; i++) { %>
<% if (poll.questions[q].answers.length > 1) { %> <%= poll.questions[q].answers[i].text %>
<% } %>
<% } %>
<% } else if (poll.questions[q].type === "multiple-close-ended") { %>
<% for (var i = 0; i < poll.questions[q].answers.length; i++) { %>
<% if (poll.questions[q].answers.length > 1) { %> <%= poll.questions[q].answers[i].text %>
<% } %>
<% } %>
<% } else if (poll.questions[q].type === "single-open-ended-single-line" || poll.questions[q].type === "email") { %>
" />
<% } else if (poll.questions[q].type === "single-open-ended-multiple-line") { %>
<% } else if (poll.questions[q].type === "net-promoter-score") { %>
    <% for (var i = 0; i < 11; i++) { %>
  • <%=i%>
  • <% } %>
<%= poll.questions[q].labels[0].text %>
<%= poll.questions[q].labels[1].text %>
<% } else if (poll.questions[q].type === "rating-scale-5" || poll.questions[q].type === "rating-scale-7") { %>
    <% for (var i = 1; i < (poll.questions[q].scaleCount +1); i++) { %>
  • <%=i%>
  • <% } %>
<%= poll.questions[q].labels[0].text %>
<%= poll.questions[q].labels[1].text %>
<% } %>
<% } %>

<%= poll.thankyou %>

<%=hj.widget.renderLegal(poll.showLegal)%>
',"
"].join("");function r(){t=[],o++,hj.log.debug("Rendering poll widget.","poll"),hj.widget.setLanguage(hj.widget.pollData.language),n.request=hj.widget.pollData.ask_for_consent;var e=hj.widget.changeColorLuminance(hj.widget.pollData.background,-.1),r=hj.widget.changeColorLuminance(hj.widget.pollData.background,.1),d=hj.widget.changeColorLuminance(hj.widget.pollData.background,-.2),c=hj.widget.changeColorLuminance(hj.widget.pollData.background,.2),l=hj.widget.changeColorLuminance(hj.widget.pollData.background,-.6),p=hj.widget.changeColorLuminance(hj.widget.pollData.background,.6),h=hj.rendering.renderTemplate(a,{apiUrlBase:new hj.rendering.TrustedString(hj.apiUrlBase),hjStaticHost:new hj.rendering.TrustedString(hj.staticHost),hjid:hj.settings.site_id,preview:hj.isPreview||!1,poll:{id:hj.widget.pollData.id,effectiveShowBranding:hj.widget.pollData.effective_show_branding,questions:hj.widget.pollData.content.questions,thankyou:hj.widget.pollData.content.thankyou,showLegal:hj.widget.pollData.show_legal},widgetStyle:{position:hj.widget.pollData.position,skin:hj.widget.pollData.skin,primaryColor:hj.widget.pollData.background,secondaryColor:"light"===hj.widget.pollData.skin?e:r,alternateColor:"light"===hj.widget.pollData.skin?d:c,footerTextColor:"light"===hj.widget.pollData.skin?l:p,footerBorderColor:"light"===hj.widget.pollData.skin?d:e,fontColor:"light"===hj.widget.pollData.skin?"#111":"#FFF",fontColorNegative:"light"===hj.widget.pollData.skin?"#FFF":"#111"},p:hj.widget.widgetAttributePrefix,cta:new hj.rendering.TrustedString(hj.widget.ctaLinks.polls)});h?(hj.widget.ctrl=hj.rendering.addToDom("_hj_poll_container",h),function(){var e,a;function r(){var e,t,i,o=hj.hq("."+hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active").length,n=!0;if(0===o)n=!1;else for(e=0;ediv").off("click.consent")})),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_radio_checkbox textarea").on("click",hj.tryCatch(function(e){e.stopPropagation()},"polls")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_radio").on("click",hj.tryCatch(function(){var e=hj.hq(this),t=e.find("."+hj.widget.widgetAttributePrefix+"_input_field");hj.hq(hj.hq("#"+hj.widget.widgetAttributePrefix+"_question_content_"+hj.widget.currentQuestionIndex)[0]).find("."+hj.widget.widgetAttributePrefix+"_button_radio_checkbox").removeClass(hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active"),e.addClass(hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active"),t.focus(),r()?hj.widget.enableSubmit():hj.widget.disableSubmit()},"polls")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_checkbox").on("click",hj.tryCatch(function(){var e=hj.hq(this),t=e.find("."+hj.widget.widgetAttributePrefix+"_input_field");e.toggleClass(hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active"),t.focus(),r()?hj.widget.enableSubmit():hj.widget.disableSubmit()},"polls")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_score").on("click",hj.tryCatch(function(){var e=hj.hq(this);hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_score").removeClass(hj.widget.widgetAttributePrefix+"_button_score_active"),e.addClass(hj.widget.widgetAttributePrefix+"_button_score_active"),hj.widget.enableSubmit()},"polls")),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_input_field").on("keyup",hj.tryCatch(function(){var e=hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_question_content_"+hj.widget.currentQuestionIndex);("email"===e.attr("_hj_question_type")?hj.utils.validateEmail(hj.hq(this).val()):"single-open-ended-multiple-line"===e.attr("_hj_question_type")||"single-open-ended-single-line"===e.attr("_hj_question_type")?hj.hq(this).val().length>0:r())?hj.widget.enableSubmit():hj.widget.disableSubmit()},"polls")),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_action_submit").on("click",hj.tryCatch(function(){hj.widget.submitResponse()},"polls")),hj.widget.ctrl.find("[data-consent]").on("click",hj.tryCatch(function(){"true"===hj.hq(this).attr("data-consent")&&(hj.widget.pollResponseId?hj.request.grantConsent({response_type:"poll_response",response_id:hj.widget.pollResponseId,message:hj.widget._("consent")}):hj.widget.awaitResponseId=function(){hj.request.grantConsent({response_type:"poll_response",response_id:hj.widget.pollResponseId,message:hj.widget._("consent")})}),hj.widget.dismissWidget()},"polls")),hj.hq(window).on("resize",hj.tryCatch(function(){hj.widget.applyPhoneClasses()},"polls")),hj.widget.applyPhoneClasses(),a=hj.isPreview&&"desktop"===hj.widget.pollData.previewDevice,hj.widget.isNarrowScreen()&&!a?hj.widget.collapseWidget():hj.widget.openWidget(),!hj.isPreview&&hj.cookie.find("_hjMinimizedPolls",hj.widget.pollData.id)&&hj.widget.changeState(null,"hidden"),e=hj.widget.pollData.activeStepInPreview,hj.isPreview&&e&&(hj.widget.goToQuestion(e),parseInt(e)&&hj.widget.openWidget()),hj.widget.init()}(),"once"==hj.widget.pollData.persist_condition&&hj.cookie.add("_hjDonePolls",hj.widget.pollData.id)):hj.log.debug("Poll widget #"+hj.widget.pollData.id+" could not be rendered.","polls")}function s(e){return hj.hq(""+e+"").text()}function d(e){hj.hq.each(e.content.questions,function(e,t){t.answers&&hj.hq.each(t.answers,function(e,t){t.index=e})})}function c(e){hj.hq.each(e.content.questions,function(e,t){t.randomize_answer_order&&hj.utils.shuffle(t.answers)})}return e.run=hj.tryCatch(function(t){hj.hq.each(hj.settings.polls||[],function(i,o){hj.targeting.matchRules(o.targeting,t,hj.tryCatch(function(){hj.log.debug("Poll #"+o.id+" has matched.","poll"),hj.cookie.find("_hjDonePolls",o.id)?hj.log.debug("Poll was already submitted.","poll"):hj.widget.addMatchingWidget("poll",o.id,o.created_epoch_time,function(){hj.tryCatch(d,"polls")(o),hj.tryCatch(c,"polls")(o),hj.widget.pollData=o,hj.tryCatch(hj.rendering.callAccordingToCondition,"polls")(hj.widget.pollData,"poll",r)},e.remove)},"polls.run.matchRules-callback"))})},"polls"),e.remove=hj.tryCatch(function(e){hj.widget.pollData?(hj.hq("#_hj_poll_container").length>0&&hj.hq("#_hj_poll_container").parent().remove(),delete hj.widget.pollData,setTimeout(function(){e()},1)):e()}),hj.isPreview&&(window._hjPollReload=hj.tryCatch(function(e){hj.tryCatch(d,"polls")(e),hj.tryCatch(c,"polls")(e),hj.widget.pollData=e,n.request=e.ask_for_consent,hj.settings.legal_name=e.legal_name,hj.settings.privacy_policy_url=e.privacy_policy_url,hj.settings.privacy_policy_url=e.privacy_policy_url,hj.tryCatch(r,"polls")()},"polls")),e}(),!0)},"polls")()},function(e,t){hj.tryCatch(function(){hj.loader.registerModule("Surveys",function(){var e={},t='
<%= survey.title %>
<%= survey.description %>
<%= survey.button %>
<% if (survey.effectiveShowBranding) { %>
Not using Hotjar yet?
<% } %>
';function i(){hj.log.debug("-- RENDERING SURVEY INVITE --","survey");var e=hj.rendering.renderTemplate(t,{hjStaticHost:new hj.rendering.TrustedString(hj.staticHost),survey:{id:hj.survey.data.id,effectiveShowBranding:hj.survey.data.effective_show_branding,title:hj.survey.data.invite.title,description:hj.survey.data.invite.description,button:hj.survey.data.invite.button,close:hj.survey.data.invite.close,url:new hj.rendering.TrustedString(hj.survey.data.public_url)},p:hj.widget.widgetAttributePrefix,cta:new hj.rendering.TrustedString(hj.widget.ctaLinks.surveys)});e?(hj.survey.ctrl=hj.rendering.addToDom("_hj_survey_invite_container",e),setTimeout(hj.tryCatch(function(){hj.survey.ctrl.addClass("_hj-f5b2a1eb-9b07_survey_show")},"surveys"),0),hj.survey.ctrl.find("._hj-f5b2a1eb-9b07_survey_close, ._hj-f5b2a1eb-9b07_survey_button, ._hj-f5b2a1eb-9b07_survey_close_link a, #_hj-f5b2a1eb-9b07_survey_invite_overlay").on("click",o),hj.hq(window).on("resize",hj.tryCatch(function(){n()},"surveys")),hj.tryCatch(n,"surveys")()):hj.log.debug("Survey #"+hj.survey.data.id+" could not be rendered.","surveys")}function o(){hj.log.debug("-- CLOSING SURVEY INVITE --","survey"),hj.survey.ctrl.hide(),hj.cookie.add("_hjClosedSurveyInvites",hj.survey.data.id)}function n(){hj.hq(window).width()<580?hj.survey.ctrl.addClass("_hj-f5b2a1eb-9b07_survey_full"):hj.survey.ctrl.removeClass("_hj-f5b2a1eb-9b07_survey_full")}return e.run=hj.tryCatch(function(t){hj.hq.each(hj.settings.surveys||[],function(o,n){hj.targeting.matchRules(n.targeting,t,hj.tryCatch(function(){hj.log.debug("Survey #"+n.id+" has matched.","survey"),hj.cookie.find("_hjClosedSurveyInvites",n.id)?hj.log.debug("Survey was already viewed.","survey"):hj.widget.addMatchingWidget("survey",n.id,n.created_epoch_time,function(){hj.survey.data=n,hj.rendering.callAccordingToCondition(hj.survey.data,"survey",i)},e.remove)},"surveys.run.matchRules-callback"))})},"surveys"),e.remove=hj.tryCatch(function(e){hj.survey.data?(hj.hq("#_hj_survey_invite_container").length>0&&(hj.survey.ctrl.hide(),hj.hq("#_hj_survey_invite_container").parent().remove()),delete hj.survey.data,setTimeout(function(){e()},1)):e()}),e}(),!0)},"surveys")()},function(e,t){hj.tryCatch(function(){hj.loader.registerModule("Testers",function(){var e={},t={granted:null,request:!1},i=['
',hj.widget.commonCSS,'','

<%= testersWidget.invitation %>

<%= testersWidget.description %>

<% if (testersWidget.fields.name) { %> " data-bind /> <% } %>
class="<%=p%>_double_control" <% } %>> <% if (testersWidget.fields.age) { %> " data-bind /> <% } %> <% if (testersWidget.fields.city) { %> " data-bind /> <% } %>
<% if (testersWidget.fields.email) { %> " data-bind /> <% } %> <% if (testersWidget.fields.phone) { %> " data-bind /> <% } %> <% if (testersWidget.fields.sex) { %>
<%= hj.widget._("male")%>
<%= hj.widget._("female")%>
<% } %>

<%= testersWidget.thankyou %>

<%=hj.widget.renderLegal(testersWidget.showLegal)%>\n
',"
"].join("");function o(){hj.log.debug("-- RENDERING TESTERS WIDGET --"),hj.widget.setLanguage(hj.widget.testersData.language);var e=hj.widget.changeColorLuminance(hj.widget.testersData.background,-.1),o=hj.widget.changeColorLuminance(hj.widget.testersData.background,.1),n=hj.widget.changeColorLuminance(hj.widget.testersData.background,-.2),a=hj.widget.changeColorLuminance(hj.widget.testersData.background,.2),r=hj.widget.changeColorLuminance(hj.widget.testersData.background,-.6),s=hj.widget.changeColorLuminance(hj.widget.testersData.background,.6),d=hj.rendering.renderTemplate(i,{apiUrlBase:new hj.rendering.TrustedString(hj.apiUrlBase),hjStaticHost:new hj.rendering.TrustedString(hj.staticHost),hjid:hj.settings.site_id,preview:hj.isPreview||!1,testersWidget:{id:hj.widget.testersData.id,effectiveShowBranding:hj.widget.testersData.effective_show_branding,fields:{name:hj.widget.testersData.content.fields.indexOf("name")>-1,age:hj.widget.testersData.content.fields.indexOf("age")>-1,city:hj.widget.testersData.content.fields.indexOf("city")>-1,email:hj.widget.testersData.content.fields.indexOf("email")>-1,phone:hj.widget.testersData.content.fields.indexOf("phone")>-1,sex:hj.widget.testersData.content.fields.indexOf("sex")>-1},invitation:hj.widget.testersData.content.invitation,description:hj.widget.testersData.content.description,thankyou:hj.widget.testersData.content.thankyou,showLegal:hj.widget.testersData.show_legal},widgetStyle:{position:hj.widget.testersData.position,skin:hj.widget.testersData.skin,primaryColor:hj.widget.testersData.background,secondaryColor:"light"===hj.widget.testersData.skin?e:o,alternateColor:"light"===hj.widget.testersData.skin?n:a,footerTextColor:"light"===hj.widget.testersData.skin?r:s,footerBorderColor:"light"===hj.widget.testersData.skin?n:e,fontColor:"light"===hj.widget.testersData.skin?"#111":"#FFF",fontColorNegative:"light"===hj.widget.testersData.skin?"#FFF":"#111"},p:hj.widget.widgetAttributePrefix,cta:new hj.rendering.TrustedString(hj.widget.ctaLinks.testers)});d?(hj.widget.ctrl=hj.rendering.addToDom("_hj_testers_container",d),function(){function e(){var e=!0;return hj.hq.each(hj.widget.testersData.content.fields,function(t,i){hj.widget.model[i]||(e=!1)}),e}hj.widget.submitResponse=hj.tryCatch(function(){e()&&(hj.isPreview||(hj.request.saveTesterResponse({action:"testers_widget_response",response:hj.widget.model},function(e){hj.widget.testersResponseId=e.tester_response_id,hj.widget.awaitResponseId&&hj.widget.awaitResponseId()}),hj.widget.setDone()),!t.granted&&t.request?hj.widget.changeState(!1,"thankyou_consent"):hj.widget.changeState(!1,"thankyou"))},"testers"),hj.widget.setDone=hj.tryCatch(function(){hj.isPreview||hj.cookie.add("_hjDoneTestersWidgets",hj.widget.testersData.id)},"testers"),hj.widget.setMinimized=hj.tryCatch(function(){hj.isPreview||hj.cookie.add("_hjMinimizedTestersWidgets",hj.widget.testersData.id)},"testers"),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_action_open_widget").on("click",hj.tryCatch(function(){t.request=hj.widget.testersData.ask_for_consent,hj.isPreview?t.granted=!1:hj.request.getConsentGranted(function(e){t.granted=e})})),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_radio").on("click",hj.tryCatch(function(){var t=hj.hq(this),i=t.attr("data-key"),o=t.attr("data-value");hj.widget.model[i]=o,e()?hj.widget.enableSubmit():hj.widget.disableSubmit(),hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_button_radio_checkbox").removeClass(hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active"),t.addClass(hj.widget.widgetAttributePrefix+"_button_radio_checkbox_active")},"testers")),hj.widget.ctrl.find("[data-bind]").on("keyup change",hj.tryCatch(function(){var t=hj.hq(this),i=t.attr("name").split(hj.widget.widgetAttributePrefix+"_")[1];hj.widget.model[i]=t.val(),e()?hj.widget.enableSubmit():hj.widget.disableSubmit()},"testers")),hj.widget.ctrl.find("#"+hj.widget.widgetAttributePrefix+"_action_submit").on("click",hj.tryCatch(function(){hj.widget.submitResponse()},"testers")),hj.widget.ctrl.find("[data-consent]").on("click",hj.tryCatch(function(){"true"===hj.hq(this).attr("data-consent")&&(hj.widget.testersResponseId?hj.request.grantConsent({response_type:"tester_response",response_id:hj.widget.testersResponseId,message:hj.widget._("consent")}):hj.widget.awaitResponseId=function(){hj.request.grantConsent({response_type:"tester_response",response_id:hj.widget.testersResponseId,message:hj.widget._("consent")})}),hj.widget.dismissWidget()},"testers")),hj.hq(window).on("resize",hj.tryCatch(function(){hj.widget.applyPhoneClasses()},"testers")),hj.tryCatch(hj.widget.applyPhoneClasses,"testers")(),hj.tryCatch(hj.widget.collapseWidget,"testers")(),!hj.isPreview&&hj.cookie.find("_hjMinimizedTestersWidgets",hj.widget.testersData.id)&&hj.tryCatch(hj.widget.changeState,"testers")(null,"hidden"),hj.tryCatch(hj.widget.init,"testers")()}(),"once"===hj.widget.testersData.persist_condition&&hj.cookie.add("_hjDoneTestersWidgets",hj.widget.testersData.id)):hj.log.debug("Tester widget #"+hj.widget.testersData.id+" could not be rendered.","testers")}return e.run=hj.tryCatch(function(t){hj.hq.each(hj.settings.testers_widgets||[],function(i,n){hj.targeting.matchRules(n.targeting,t,hj.tryCatch(function(){hj.log.debug("Tester #"+n.id+" has matched.","tester"),hj.cookie.find("_hjDoneTestersWidgets",n.id)?hj.log.debug("Tester was already submitted.","tester"):hj.widget.addMatchingWidget("tester",n.id,n.created_epoch_time,function(){hj.widget.testersData=n,hj.tryCatch(hj.rendering.callAccordingToCondition,"testers")(hj.widget.testersData,"testersWidget",o)},e.remove)},"testers.run.matchRules-callback"))})},"testers"),e.remove=hj.tryCatch(function(e){hj.widget.testersData?(hj.hq("#_hj_testers_container").length>0&&(hj.widget.ctrl.hide(),hj.hq("#_hj_testers_container").parent().remove()),delete hj.widget.testersData,setTimeout(function(){e()},1)):e()}),hj.isPreview&&(window._hjTestersWidgetReload=function(e){hj.widget.testersData=e,hj.settings.legal_name=e.legal_name,hj.settings.privacy_policy_url=e.privacy_policy_url,o()}),e}(),!0)},"testers")()},function(e,t){hj.tryCatch(function(){var e,t,i,o,n,a,r,s,d,c,l,p,h,u,_,g,m,f,b,w,v;hj.loader.registerModule("Forms",(e=null,t={},i=null,o=[],n=hj.tryCatch(function(t,i,o,n){var r,s;hj.hq.each(e.field_info,function(e,d){r=-1!==i.indexOf("*")||-1!==i.indexOf(d.field_type),s=-1!==o.indexOf(d.field_type),r&&!s&&a(d).on(t,function(){n(this,d)})})},"forms"),a=hj.tryCatch(function(t){var i,o,n;if("id"===e.selector_type)i=hj.hq("form[id='"+e.selector+"']");else{if("css"!==e.selector_type)throw new Error("Invalid selector_type: "+e.selector_type);n=parseInt(e.selector.split(":",1)),o=e.selector.slice(n.toString().length+1),i=hj.hq(hj.hq(o)[n])}return i.find("*["+t.match_attribute+"='"+t.match_value.replace(/'/g,"\\'")+"']")},"forms"),r=hj.tryCatch(function(t){var i=sessionStorage.getItem("_hjForm"),o=i?JSON.parse(i).id:0;hj.hq.each(hj.settings.forms||[],function(i,o){if(hj.targeting.matchRules(o.targeting,t))return e=o,hj.log.debug("Setting active form to form[id="+e.id+"]","forms"),!1}),!e&&o&&hj.hq.each(hj.settings.forms||[],function(t,i){if(i.id==o)return e=i,hj.log.debug("Setting active form to form[id="+e.id+"]","forms"),!1})},"forms"),s=hj.tryCatch(function(t,i){var o,n;if("id"===i)return hj.hq("form[id='"+t+"']").length>0;if("css"===i)return n=t.split(":",1),o=t.slice(n.length+1),hj.hq(o).length>parseInt(n);throw new Error("Invalid selector_type: "+e.selector_type)},"forms"),d=hj.tryCatch(function(e){hj.log.debug("Saving forms using manual tracking: "+JSON.stringify(e),"forms"),sessionStorage.setItem("_hjFormsManualTracking",JSON.stringify(e))},"forms"),c=hj.tryCatch(function(){var e=JSON.parse(sessionStorage.getItem("_hjFormsManualTracking"))||[];return e.length&&hj.log.debug("Getting forms using manual tracking: "+JSON.stringify(e),"forms"),e},"forms"),l=hj.tryCatch(function(e){hj.hq.inArray(e.id,o)||(o.push(e.id),hj.log.debug("Form using manual tracking added: form[id="+e.id+"]","forms"),d(o))},"forms"),p=hj.tryCatch(function(){hj.log.debug("Saving active form: form[id="+e.id+"]","forms"),sessionStorage.setItem("_hjForm",JSON.stringify(e))},"forms"),h=hj.tryCatch(function(){return Boolean(sessionStorage.getItem("_hjForm"))},"forms"),u=hj.tryCatch(function(){var e,t=sessionStorage.getItem("_hjForm");sessionStorage.removeItem("_hjForm"),t=JSON.parse(t),e=!s(t.selector,t.selector_type)&&hj.targeting.matchRules(t.targeting,document.referrer),_(t,e,!0)},"forms"),_=hj.tryCatch(function(t,i,n){n||l(e),n&&hj.hq.inArray(t.id,o)||hj.eventStream.write({form_id:t.id,form_event:i?"form_submit_successful":"form_submit_failed"}).flush()},"forms"),g=hj.tryCatch(function(){i=new Date},"forms"),m=hj.tryCatch(function(t,o){i&&(hj.eventStream.write({form_id:e.id,form_field_event:{form_field_id:o.id,interaction_time:new Date-i,content_hash:hj.md5(hj.hq(t).val())}}).flush(),i=null)},"forms"),f=hj.tryCatch(function(t,i){hj.eventStream.write({form_id:e.id,form_field_event:{form_field_id:i.id,interaction_time:null,content_hash:hj.md5(hj.hq(t).val())}}).flush()},"forms"),b=hj.tryCatch(function(t,i){var o,n=a(i),r=[];for(o=0;o(o=parseInt(r[n]||0)))return!0;if(i0:(o=document.getElementById(e.selector),a=Boolean(o));else{if("css"!==e.selector_type)throw new Error("Invalid selector_type: "+e.selector_type);t=parseInt(e.selector.split(":",1)),i=e.selector.slice(t.toString().length+1),n?a=(o=window.jQuery(i+":eq("+t+")")).length>0:(o=hj.hq(i)[t],a=Boolean(o))}a?n?(function(e){function t(t){return d?t.data("events"):e._data(t[0]).events}function i(e,i,o){var n=t(e),a=n[i];if(d)o?n.live.unshift(n.live.pop()):a.unshift(a.pop());else{var r=o?a.splice(a.delegateCount-1,1)[0]:a.pop();a.splice(o?0:a.delegateCount||0,0,r)}}function o(t,o,n){var a=o.split(/\s+/);t.each(function(){for(var t=0;a.length>t;++t){var o=e.trim(a[t]).match(/[^\.]+/i)[0];i(e(this),o,n)}})}function n(t){e.fn[t+"First"]=function(){var i=e.makeArray(arguments).shift();return i&&(e.fn[t].apply(this,arguments),o(this,i)),this}}var a=e.fn.jquery.split("."),r=parseInt(a[0]),s=parseInt(a[1]),d=1>r||1==r&&7>s;n("bind"),n("one"),e.fn.delegateFirst=function(){var t=e.makeArray(arguments),i=t[1];return i&&(t.splice(0,2),e.fn.delegate.apply(this,arguments),o(this,i,!0)),this},e.fn.liveFirst=function(){var t=e.makeArray(arguments);return t.unshift(this.selector),e.fn.delegateFirst.apply(e(document),t),this},d||(e.fn.onFirst=function(t,i){var n=e(this),a="string"==typeof i;if(e.fn.on.apply(n,arguments),"object"==typeof t)for(type in t)t.hasOwnProperty(type)&&o(n,type,a);else"string"==typeof t&&o(n,t,a);return n})}(jQuery),w(window.jQuery.fn.jquery,"1.7")?o.onFirst("submit",p):w(window.jQuery.fn.jquery,"1.3")&&o.liveFirst("submit",p)):hj.hq(o).on("submit",p):hj.log.debug('Could not find form with selector "'+e.selector+'".',"forms")},"forms"),hj.forms=hj.tryCatch(function(){var t={cmdFormSubmitSuccessful:function(){null!==e&&_(e,!0,!1)},cmdFormSubmitFailed:function(){null!==e&&_(e,!1,!1)}};return t},"forms")(),t.run=hj.tryCatch(function(t){var i=h();hj.includedInSample&&(r(t),(e||i)&&(o=c(),hj.eventStream.write({form_id:e.id,form_event:"form_helo"}).flush(),i?u():e&&(n("focus",["*"],["checkbox","radio"],g),n("blur",["*"],["checkbox","radio"],m),n("change",["checkbox"],[],b),n("focus",["radio"],[],f),v())))},"forms"),t))},"forms")()},function(e,t){hj.tryCatch(function(){hj.loader.registerModule("HeatmapScreenshotter",function(){var e,t={},i=['
',hj.widget.commonCSS,'','
\x3c!-- Minimized State --\x3e
'].join("");function o(){var t=hj.ui.getWindowSize().height>100?Math.round(hj.ui.getWindowSize().height/2):300;hj.log.debug("Rendering heatmap screenshotter widget.","heatmap-screenshotter"),hj.widget.setLanguage("en");var o,n,a,r=hj.rendering.renderTemplate(i,{apiUrlBase:new hj.rendering.TrustedString(hj.apiUrlBase),hjStaticHost:new hj.rendering.TrustedString(hj.staticHost),hjid:_hjSettings.hjid,cta:new hj.rendering.TrustedString(hj.widget.ctaLinks.feedback),p:hj.widget.widgetAttributePrefix,preview:hj.isPreview||!1,features:{selectElement:!(hj.utils.isSafari()&&hj.widget.isPhoneOrTablet())},heatmapScreenshotter:{id:1,content:{thankyou:"Cheers!"},position:"bottom_right",language:"en"},widgetStyle:{accentColor:"#f4364c",accentTextColor:"#ffffff",backgroundColor:"#ffffff",darkGrey:"#333333",disabledColor:"#cccccc",selectionColor:"#ffd902",selectionTextColor:"#3c3c3c",middlePositionPixels:t}});r?(hj.widget.ctrl=hj.rendering.addToDom("_hj_heatmap_screenshotter_container",r),o={showMinimizedMessageTimer:function(){}},n=hj.hq("#"+hj.widget.widgetAttributePrefix+"_heatmap_screenshotter_container"),a=hj.widget.ctrl.find("."+hj.widget.widgetAttributePrefix+"_camera"),o.endScreenshotter=hj.tryCatch(function(){hj.log.debug("Closing the heatmap screenshot retaker.","heatmap-screenshotter"),n.remove(),hj.remoteStorage.set("screenshot_retake",!1,1,hj.settings.siteId)},"heatmap-screenshotter"),o.sendHeatmapScreenshots=hj.tryCatch(function(){e.retakes.forEach(function(e){hj.log.debug("Sending heatmap screenshot retake for DPC ID "+e.id+" ("+e.device+").","heatmap-screenshotter"),hj.sendPageContent(e.id,e.token)})},"heatmap-screenshotter"),o.flash=hj.tryCatch(function(){hj.hq("#"+hj.widget.widgetAttributePrefix+"_heatmap_screenshotter_flash").on("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd",function(){hj.hq(this).removeClass(hj.widget.widgetAttributePrefix+"_flash"),a.addClass(hj.widget.widgetAttributePrefix+"_done"),o.endScreenshotter()}),hj.hq("#"+hj.widget.widgetAttributePrefix+"_heatmap_screenshotter_flash").addClass(hj.widget.widgetAttributePrefix+"_flash"),a.addClass(hj.widget.widgetAttributePrefix+"_success"),o.sendHeatmapScreenshots()},"heatmap-screenshotter"),a.on("click",hj.tryCatch(function(){o.flash()},"heatmap-screenshotter"))):hj.log.debug("Heatmap screenshotter widget #"+hj.widget.heatmapData.id+" could not be rendered.","heatmap-screenshotter")}return t.run=hj.tryCatch(function(i){hj.remoteStorage.get("screenshot_retake",function(n){n&&(e=n,hj.targeting.matchRules(e.targeting,i,hj.tryCatch(function(){var i;i=e,hj.widget.addMatchingWidget("heatmapScreenshotter",i.id,Math.round((new Date).getTime()/1e3),function(){hj.rendering.callAccordingToCondition({display_condition:"immediate"},"heatmapScreenshotter",hj.tryCatch(o,"heatmap-screenshotter"))},t.remove),hj.log.debug("Heatmap screenshotter widget enabled for heatmap #"+i.id+".","heatmap-screenshotter")},"heatmap-screenshotter.run.matchRules-callback")))})},"heatmap-screenshotter"),t.remove=hj.tryCatch(function(e){hj.widget.heatmapData?(hj.hq("#"+hj.widget.widgetAttributePrefix+"_heatmap_screenshotter").length>0&&hj.hq("#"+hj.widget.widgetAttributePrefix+"_heatmap_screenshotter").parent().remove(),delete hj.widget.heatmapData,setTimeout(function(){e()},1)):e()}),t}(),!0)},"heatmap-screenshotter")()},function(e,t){hj.tryCatch(function(){"use strict";void 0===hj.scriptLoaded&&(hj._init=hj.tryCatch(function(){var e={_determineIncludedInSample:function(){var e=new hj.fingerprinter,t=hj.url.getParameter("hjIncludeInSample"),i=hj.cookie.get("_hjIncludedInSample");if(i)hj.includedInSample="1"===i,hj.log.debug("User is included in sample","init");else switch(t){case"0":hj.includedInSample=!1,hj.log.debug("You have set includedInSample to false.","init");break;case"1":hj.includedInSample=!0,hj.cookie.set("_hjIncludedInSample",hj.includedInSample?"1":"0",0),hj.log.debug("You have set includedInSample to true.","init");break;default:hj.includedInSample=e.compareRatio(hj.settings.r||1),hj.includedInSample&&hj.cookie.set("_hjIncludedInSample","1",0),hj.log.debug("Included in sample: "+hj.includedInSample,"init",{r:hj.settings.r,fingerprintValue:e.getAsNumber()})}},_verifyInstallation:function(){var e,t,i=hj.url.getParameter("hjVerifyInstall");try{e=sessionStorage.getItem("hjVerifyInstall")}catch(e){}if(i||e){hj.verifyInstall=parseInt(i||e);try{sessionStorage.setItem("hjVerifyInstall",i||e)}catch(e){}if(hj.includedInSample||hj.visitData.track(),window.hjBootstrapCalled&&window.hjBootstrapCalled.length>1){var o="You have "+window.hjBootstrapCalled.length+" tracking scripts installed on your site. "+(2===window.hjBootstrapCalled.length?"Please remove the duplicate script as this will cause errors.":"Please remove the duplicate scripts as these will cause errors.");hj.notification.show("Multiple Hotjar scripts detected",o,"bad"),t="Passed Site ID: "+hj.verifyInstall+" contains multiple scripts "+window.hjBootstrapCalled.join(", "),hj.exceptions.log({message:t,stacktrace:""})}else hj.verifyInstall===hjSiteSettings.site_id?(hj.notification.show("Hotjar installation verified","The Hotjar tracking code has been properly installed on this page. Browse your site in this window if you wish to verify installation on any other pages.","good"),hj.xcom.send("scriptActive",[])):(hj.notification.show("Hotjar installation invalid","The tracking code you are trying to verify does not match the one installed on this page. Please make sure you install the correct tracking code provided for this site.","bad"),t="Passed Site ID: "+hj.verifyInstall+" != Configured Site "+hjSiteSettings.site_id,hj.exceptions.log({message:t,stacktrace:""}))}}};return e._browserIsSupported=hj.tryCatch(function(){return!(hj.utils.ieVersion()<11)||(hj.log.debug("IE < 11 is not supported.","init"),"1"===hj.url.getParameter("hjVerifyInstallation")&&hj.notification.show("Hotjar installation cannot be verified.","Sorry – your browser is not supported.","bad"),!1)},"init"),e._checkDebug=hj.tryCatch(function(){var e=hj.url.getParameter("hjDebug");e&&("1"===e||"true"===e?hj.debug.on(!0):hj.debug.off()),"true"===hj.cookie.get("hjDebug")&&hj.debug.on(!1)},"init"),e._canUseCookies=hj.tryCatch(function(){return!!navigator.cookieEnabled&&("cookie"in document&&(document.cookie.length>0||(document.cookie="_hjCookieTest",document.cookie.indexOf("_hjCookieTest")>-1&&(document.cookie="_hjCookieTest; expires=Thu, 01 Jan 1970 00:00:01 GMT;",!0))))},"init"),e._canUseLocalStorage=hj.tryCatch(function(){try{localStorage.setItem("_hjLocalStorageTest",1),localStorage.removeItem("_hjLocalStorageTest")}catch(e){return!1}return!0},"init"),e._canUseSessionStorage=hj.tryCatch(function(){try{sessionStorage.setItem("_hjSessionStorageTest",1),sessionStorage.removeItem("_hjSessionStorageTest")}catch(e){return!1}return!0},"init"),e._canRun=hj.tryCatch(function(){return-1===navigator.userAgent.indexOf("Hotjar")&&(e._canUseCookies()?e._canUseLocalStorage()?!!e._canUseSessionStorage()||(hj.log.debug("sessionStorage is not available","init"),!1):(hj.log.debug("localStorage is not available","init"),!1):(hj.log.debug("Cookies are not enabled"),!1))},"init"),e._configureStateChangeListenMode=function(){var e="manual";hj.settings&&hj.settings.state_change_listen_mode&&(e=hj.settings.state_change_listen_mode),hj.locationListener.setMode(e)},e.run=hj.tryCatch(function(t){hj.currentUrl=t,hj.scriptLoaded=!0,e._browserIsSupported()&&(e._checkDebug(),e._canRun()?hj.remoteStorage.get("_hjOptOut",function(i){e._run(t,i)}):hj._init._verifyInstallation())},"init"),e._run=hj.tryCatch(function(t,i){"true"!==i&&"1"!==navigator.doNotTrack&&"1"!==window.doNotTrack&&"1"!==navigator.msDoNotTrack||(hj.log.debug("Visitor has opted out of tracking.","init"),hj.optOut=!0),hj.loader.loadSettings(function(i){hj.settings=i||{},hj.log.debug("Site settings","init",hj.settings),e._determineIncludedInSample(),e._configureStateChangeListenMode(),hj.loader.loadScripts([],hj.tryCatch(function(){e._runPage(t),e._verifyInstallation(),hj.command.activate(),"1"===hj.url.getParameter("hjIncludeInSample")&&hj.notification.show("Hotjar tracking active.","Hotjar tracking is active for your session.","good")},"init.run"))})},"init"),e.reinit=hj.tryCatch(function(t){hj.currentUrl=t,hj.widgetDelay.clear(),hj.disableHeatmap(),hj.widget.emptyMatchingWidgets(),e._runPage(t)},"init"),e._runPage=hj.tryCatch(function(e){hj.includedInSample&&!hj.optOut&&hj.visitData.track(e),hj.hq.each(hj.loader.getModules(),function(t,i){hj.optOut&&!i.nonTracking||(hj.log.debug("Running module","init",i.name),i.module.run(e))}),hj.widget.runLatestMatchingWidget()},"init"),e},"init")(),hj.hq(document).ready(function(){hj.log.debug("Document is ready. Initializing...","init"),hj.scriptContextId=hj.utils.uuid4(),hj._init.run(location.href)}))},"init")()}]);